title: Regular expression for date not working; MVC3 DataAnnotations
body: <p>Im using DataAnnotations in an interface of a linq sql class.
  Thats all fine.</p>
  
  <p>Im having problems with the date time fields</p>
  
  <p>My code is as follows:</p>
  
  <pre><code> [DataType(DataType.Date)]
      [RegularExpression(@"^([1-9]|0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d$", ErrorMessage = "regexFail")]
      DateTime? DateofBirth { get; set; }
  </code></pre>
  
  <p>Now the datatype expression works fine, it brings in a date rather than a date time.
  The problem lies in validation of the fields. My regex doesn't match dates, even though i put it into an engine and it does. For instance i put "10/10/2010" in the field and i get the error "regexFail".</p>
  
  <p>I'm fairly sure my expression is good, so I'm not sure whats wrong.</p>
  
  <p>Thanks in advance.</p>