title: How to validate string is correct date time
body: <p>I have some data picked up from an excel file.</p>
  
  <p>I want to validate that the user has entered a valid date time string. I have tried to use DateTime.Parse method but found that certain values seem to be accepted.</p>
  
  <p>For example,</p>
  
  <p>If I submit 3.3 as a date time this is accepted by the DateTime.Parse method as a valid date time and outputs 03/03/2012 00:00:00</p>
  
  <p>I want to want to block this. Only allowing the user to enter correctly formatted date times.</p>
  
  <p>So for example a user could supply 03/03/2012 or 03/03/2012 12:30:00 but not values like 01022012 or 3.3.2012</p>
  
  <p>Any Ideas?</p>