title: Assign format of DateTime with data annotations?
body: <p>I have this attribute in my view model:</p>
  
  <pre><code>[DataType(DataType.DateTime)]
  public DateTime? StartDate { get; set; }
  </code></pre>
  
  <p>If I want to display the date, or populate a textbox with the date, I have these:</p>
  
  <pre><code>&lt;%: Model.StartDate %&gt;
  
  &lt;%: Html.TextBoxFor(m =&gt; m.StartDate) %&gt;
  </code></pre>
  
  <p>Whenever the date is displayed, it's displayed like: <strong>01/01/2011 12:00:00 AM</strong></p>
  
  <p>But I'd like to only display <strong>01/01/2011</strong></p>
  
  <p>Is there a way to apply a display format with data annotations? I don't want to have to go to every instance where I display a date, and add some code to format it.</p>