Validating date in asp net c
i:\x20[AP]M) # required AM or PM )| # 24 hour format ( \d|2[0-3]) #hours (:[0-5]\d)) #required minutes optional seconds ?
Thanks for help Firstly, your date format is ambiguous. in that format, tomorrow's date would appear as 12/11/2008. .3) # and day not Feb 30 or 31 ) #end Leap year check ) #end of month check (? If you made it this far the number of day is within the range for the given month) \k(? :42|3|2|1|09)\x20BC)) )| # else if not Feb 29 (?! # The maximum number of days allowed for a month has already been checked for in the month check. You should always display dates using a three-digit month. Some people will see that as 12 November but others (e.g.By far the easiest solution, and one which will never permit invalid dates, is not to allow users to enter dates manually at all. There are dozens, maybe hundreds, of these available: our friends in US) will see it as 11 December 2008. in that format, tomorrow'sdate would appear as 12/11/2008. in that format,tomorrow's date would appear as 12/11/2008. I would like to validate if the date is realy correct.
Search for validating date in asp net c:
I tried de Data Type attribute thinking it could provide validation (because the intellisense showed an Error Message in in the documentation popup) but it doesn't.