title: Setting Min-Date for DateTime picker
body: <p>I am using the <a href="http://eonasdan.github.io/bootstrap-datetimepicker/" rel="nofollow noreferrer">Bootstrap 3 Datepicker</a>, specifically the <a href="http://eonasdan.github.io/bootstrap-datetimepicker/#no-icon-input-field-only" rel="nofollow noreferrer">No Icon (input field only)</a> version.</p>
  
  <p>I am trying to use the <a href="http://eonasdan.github.io/bootstrap-datetimepicker/Functions/#minmaxdate" rel="nofollow noreferrer">minDate</a> function so that the user will not be able to enter a date that is before the date that I choose, but I am unable to figure out how to set this up with the no icon version.  I can do this with the icon.</p>
  
  <p>Here is what I have:</p>
  
  <p><strong>HTML/Razor</strong></p>
  
  <hr>
  
  <pre><code>@{
      var firstDate = new Test.Models.MS();
      using (var db = new UCEntities())
      {
          firstDate = db.MSies.Where(x =&gt; x.AID == Model.AId &amp;&amp; x.deleted == false).OrderBy(x =&gt; x.Date).FirstOrDefault();
      }
  }
  
  &lt;div class="col-md-4"&gt;
      &lt;div class="input-group date date-search-box" data-mindate="@firstDate.Date"&gt;
          @Html.TextBox("date", null, htmlAttributes: new { id = "datetimepicker1", @class = "form-control", @placeholder = "Enter Date"})
          &lt;span class="input-group-btn"&gt;
              &lt;button class="btn btn-primary" type="submit"&gt;Search Date&lt;/button&gt;
          &lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>jQuery</strong></p>
  
  <hr>
  
  <pre><code>$(document).ready(function () {
      $("#datetimepicker1").datetimepicker({
          format: 'MM/DD/YYYY',
          minDate: $("#datetimepicker1").data("mindate")
      });
  });
  </code></pre>
  
  <hr>
  
  <p>I feel like the <code>data-mindate</code> needs to be included in the <code>@Html.TextBox</code> overload helper method, but how?</p>
  
  <p>Also I know that doing logic in the view is frowned upon and that I could/should use a View Model, but I just want to test this out first.</p>
  
  <p>Any help is appreciated.</p>