title: MVC3 & Razor - Change DateTime String from "mm/dd/yyyy 12:00:00 AM" to "mm/dd/yyy" in a Textbox
body: <p>I am trying to stop the Time from showing up in a Birthday Text Field that uses DateTime</p>
  
  <p>My Code: (I'm using the Jquery DatePicker)</p>
  
  <pre><code>&lt;label for="birthday"&gt;Birthday:&lt;/label&gt;
              @Html.TextBox("birthday", (Model.Birthday.ToString()), new { @class = "datePicker" })
  </code></pre>
  
  <p>The Javascript:</p>
  
  <pre><code>$(document).ready(function () {
      $('.datePicker').datepicker({ showOn: 'both', buttonImage: "/content/images/calendar-red.gif" });
  });
  </code></pre>
  
  <p>I have the Model setup for the date:</p>
  
  <pre><code>[DataType(DataType.Date)]
  public DateTime? Birthday { get; set; }
  </code></pre>
  
  <p><strong>Still the Text in the Text box displays:</strong></p>
  
  <p>"8/21/2010 12:00:00 AM"</p>
  
  <p><strong>I want Text in the Textbox to diplay as just:</strong></p>
  
  <p>"8/21/2010"</p>
  
  <p><strong>I have tried everything from:</strong></p>
  
  <pre><code>@inherits System.Web.Mvc.WebViewPage&lt;System.DateTime&gt;
  </code></pre>
  
  <p>but wont let me do that since I am @using a model</p>