title: MVC Model Range Validator?
body: <p>i wnat to validate the datetime, My Code is:</p>
  
  <pre><code>    [Range(typeof(DateTime), 
       DateTime.Now.AddYears(-65).ToShortDateString(), 
       DateTime.Now.AddYears(-18).ToShortDateString(),
       ErrorMessage = "Value for {0} must be between {1} and {2}")]
      public DateTime Birthday { get; set; }
  </code></pre>
  
  <p>but i get the error:</p>
  
  <pre><code>An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
  </code></pre>
  
  <p>please help me?</p>