title: ASP.NET MVC 3 Binding & Validating Date to html textbox control
body: <p>I have a <code>SmallDateTime</code> field in my Sql Server 2008 database to store users Birthdays.</p>
  
  <p>On my 'Edit Profile' web page, I have a standard <code>textbox</code> which I want to bind the 'Birthday' date to (excluding the time as this is not required). At present I am binding to the textbox but it is rendering the full Date and Time.</p>
  
  <p>In addition, when the user updates their profile, I want to be able to validate the Birthday textbox, ensuring that the value specified complies to <code>dd/mm/yyyy</code>, and any deviation from that is highlighted via my existing validation summary on the page.</p>
  
  <p>How do I go about:</p>
  
  <p>a) configuring the Birthday property in my ViewModel to display in <code>dd/mm/yyyy</code> format (excluding the time).</p>
  
  <p>b) validate Birthday (based on <code>dd/mm/yyyy</code> format) when the user submits the form?</p>