David Smith

David Smith

  • NA
  • 2k
  • 0

Regex DateTIme validation

Mar 15 2012 8:23 PM
I want to do this in code  .cs file

Can some help write a regex datetime validation.

I have two datetime controls, I want to validate that the datetime is a valid date and if not throw and error. I also want to throw an error if the datetime is outside of the range MIN and MAX review below.

MIN date  and  Max Date
19670101 and  30000101

Jan 01, 1967  and Jan 01, 3000

Answers (6)