Regular expression for validating date

The format should be in this order HH: MM yyyy with all the characters used (eg not 2:3 1:3.14). First, from a user interface perspective, why don't you want to allow 2:3 1:?

regular expression for validating date-13regular expression for validating date-15regular expression for validating date-60regular expression for validating date-28

I still don't like one thing about this solution: if the String has a valid date followed by some other garbage (e.g.Note that there's just no way to check if the last portion of a path is a file or a directory just by the name alone.When capturing information for insertion into a database, or use in other processing, it's important to control what the user can enter."02/31/2100abc") the date will be parsed successfully, and success is shown.This free regular expression tester lets you test your regular expressions against any entry of your choice and clearly highlights all matches.