How to validate particular format date string using Javascript?
I have one date picker which has the display format like “dddd MMMM dd, yyyy”(displaying like this:”Wednesday February 03, 2010”.) So i have to validate this format using javascript. Please help me for implementing this..
How to validate particular format date string using Javascript? I have one date picker
Share
If you want to check exactly that format, you could use regular expression:
Or if you just need to know if it is a valid date, what format ever, simply convert it: