title: Unable to set datetime format in MVC 4 using data annotations
body: <p>I will try everything but not working this(<strong>dd/MM/yyyy</strong>) date format, this always gate <strong>mm/dd/yyyy</strong></p>
  
  <pre><code>[Display(Name = "Release Date")]
  [DataType(DataType.DateTime)]
  [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")]
  public Nullable&lt;DateTime&gt; release_date { get; set; }
  </code></pre>
  
  <p>Razor view</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.release_date)
  </code></pre>
  
  <p>Using DateTime Template.</p>
  
  <pre><code>@model Nullable&lt;System.DateTime&gt;
  @if (Model.HasValue)
  {
      @Html.TextBox("", String.Format("{0:dd/MM/yyyy}", Model.Value))
  }
  else
  {
      @Html.TextBox("", String.Format("{0:dd/MM/yyyy}", DateTime.Now))
  }
  @{
      string name = ViewData.TemplateInfo.HtmlFieldPrefix;
      string id = name.Replace(".", "_");
  }
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $("#@id").datepicker({
                  dateFormat: "dd/mm/yy",
                  showStatus: true,
                  showWeeks: true,
                  highlightWeek: true,
                  numberOfMonths: 1,
                  showAnim: "scale",
                  showOptions: {
                      origin: ["top", "left"]
                  }
            });
      });
  &lt;/script&gt;
  </code></pre>