title: Bootstrap Datepicker Startdate from attribute
body: <p>I know you can set startdate when initialising your datepickers within the config settings. I havn't found a way to add an attribute within the html input to do this.</p>
  
  <p>The way I got around this was like so. </p>
  
  <pre><code>$('.date-picker').each(function () {
      if($(this).attr("startdate") !== undefined) {
          $(this).datepicker({ format: "dd/mm/yyyy", weekStart: 0, autoclose: true, startDate: $(this).attr("startdate") });
      }
      else {
          $(this).datepicker({ format: "dd/mm/yyyy", weekStart: 0, autoclose: true });
      }
  });
  </code></pre>
  
  <p>I write this out in Razor with the following</p>
  
  <pre><code>@Html.TextBoxFor(model =&gt; model.SomeDate, new { @class = "date-picker", @data_date = "12-02-2012", @startdate = "12-04-2012" })
  </code></pre>
  
  <p>Could any one suggest the right way?</p>
  
  <p>This is working for me which is cool for now, it adds a disabled css class on anything before the date 12-04-2012.</p>