Blog
JavaScript – RegExp To Validate Any Date
If you want to validate virtually any date (formatted as YYYY/MM/DD or YYYY-MM-DD) in JavaScript with a regular expression, you can use the following (fixed on August 8, 2013): This was actually inspired by the regular expressions from this post. Of course, the best way to check a date’s validity Read more…