Regular expression for validating date in javascript

“31/6/2010”, “31/06/2010” -June has 30 days only 9. “31/4/20100”, “31/04/2010” – April has 30 days only 8.

You can use Cold Fusion variables and functions in regular expressions.When you search for data in a text, you can use this search pattern to describe what you are searching for.A regular expression can be a single character, or a more complicated pattern.When capturing information for insertion into a database, or use in other processing, it's important to control what the user can enter.Otherwise you can end up with values in the database that have no relation to reality.

Leave a Reply