title: Format DateTime in ASP.NET MVC 3
body: <p>I'm trying to display a date. Sample of my viewmodel code is below:</p>
  
  <pre><code>[Display(Name = "Date of birth")]
  [DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}", ApplyFormatInEditMode = true)]
  [DataType(DataType.Date, ErrorMessage = "Enter correct date (e.g. 23.05.1980)")]
  public DateTime CustomerBirthday { get; set; }
  </code></pre>
  
  <p>Everything is OK with displaying. But when I want to submit a form, it doesn't pass a validation if first number is greater than 12, because it expects date in format MM.dd.yyyy not dd.MM.yyyy. 
  How can I force model binder to use my DateTime pattern (dd.MM.yyyy) and ignore culture settings.</p>