|
|
Q1349 How can I check that a string contains a date?
irt.org | Knowledge Base | JavaScript | Date | Q1349 [ previous next ] Q1349 How can I check that a string contains a date?Try the following: Note that it doesn't check to see if the date is a valid date, i.e. the 30th Feb 2000 does not exist, but it still parses as a valid date string. If you need to check that the date exists see the answer to FAQ #1 - How do you check if a date is valid?.
Feedback on 'Q1349 How can I check that a string contains a date?' |
-- div -->
|