title: ASP.NET MVC4 date format in dd-mm-yyyy
body: <p>I have the following code in my Model;  </p>
  
  <pre><code> [DataType(DataType.Date)]
   [DisplayFormat(DataFormatString = "{0:dd-MM-yyyy}", ApplyFormatInEditMode=true)]    
   public DateTime? StartProject { get; set; }        
  </code></pre>
  
  <p>in my View;  </p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.StartProject)    
  </code></pre>
  
  <p>and the jquery  </p>
  
  <pre><code>$("#StartProject").datepicker(
  { dateFormat: "dd-mm-yy" }     
  );
  </code></pre>
  
  <p>It outputs something like 01/01/2015 but i would to show in this format 01-01-2014.  </p>
  
  <p>How can i do this?Thanks.</p>