I need to tweak a regular expression listed below to make sure the data is validate accordingly to this format:
01/23/2013 10:25
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy HH:mm}")]
[RegularExpression("^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)[0-9][0-9]$", ErrorMessage = "Invalid date")]
The current regular expression it seems does not take account of HH and MM
Could you please give me an hit? Thanks