title: JQuery Datepicker datetime issue parsing to @Html.EditorFor MVC3
body: <p>I've read a lot of issues about setting the correct datetime but can't get it right.</p>
  
  <p>My MVC3 approach is database first. The model is auto generated and manually changed;  </p>
  
  <pre><code>    [DataType(DataType.Date)]
      [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd-MM-yy}")]
      public Nullable&lt;System.DateTime&gt; Datum { get; set; }
  </code></pre>
  
  <p>in my view it's a straight forward razor;</p>
  
  <pre><code>    &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.Datum)
          @Html.ValidationMessageFor(model =&gt; model.Datum)
      &lt;/div&gt;
  </code></pre>
  
  <p>in Shared_Layout I added this </p>
  
  <pre><code>jQuery(function ($) {
  
  $.datepicker.regional['nl'] = {
              closeText: 'Sluiten',
              prevText: '←',
              nextText: '→',
              currentText: 'Vandaag',
              monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
                  'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
              monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun',
                  'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
              dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
              dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
              dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
              weekHeader: 'Wk',
              dateFormat: 'dd-mm-yy',
              firstDay: 1,
              isRTL: false,
              showMonthAfterYear: false,
              yearSuffix: ''
          };
  
          $.datepicker.setDefaults($.datepicker.regional['nl']);
          $.datepicker.setDefaults({ dateFormat: 'dd-mm-yy' });
      });
  </code></pre>
  
  <p>In the EditorFor field the date is presented dd-mm-yyyy
  The datepicker is format correctly in dd-mm-yy
  After parsing the date from the datepicker, dateformat is suddenly mm/dd/yyyy</p>