title: jquery ui datepicker and mvc view model type datetime
body: <p>I am using jquery datepicker on my view model</p>
  
  <p>Here is my view:</p>
  
  <pre><code>@Html.TextBoxFor(o =&gt; o.JobStartDate, new { id = "dt1", @class = "input-block-level" })
  @Html.ValidationMessage("JobStartDate")
  </code></pre>
  
  <p>and my script:</p>
  
  <pre><code>$("#dt1").datepicker({ dateFormat: "dd/mm/yy" });
  </code></pre>
  
  <p>Everything works fine if my date is &lt;= 12, if my date is over 12, it will show me an validation error message saying "The field Start Date must be a date." (I am using jquery validation)</p>
  
  <p>For example: date 16/12/2014 will give me the error while 12/12/2014 won't</p>
  
  <p>Here is my view model:</p>
  
  <pre><code>[Required]
  [DataType(DataType.Date)]
  [Display(Name = "Start Date")]
  public DateTime JobStartDate { get; set; }
  </code></pre>
  
  <p>I am suspecting that my view model is anticipating a date in the format mm/dd/yyyy while on my datepicker i specified dd/mm/yy, is there a way to tell my viewmodel that I am expecting dd/mm/yy format so that it doesn't throw an error message if date is >= 12.</p>