Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

dataannotations datetime range

[Range(typeof(DateTime), "1/2/2004", "3/4/2004",
        ErrorMessage = "Value for {0} must be between {1} and {2}")]
public datetime Something { get; set;}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataannotations #datetime #range
ADD COMMENT
Topic
Name
6+3 =