Regular Expression to validate a timestamp
Posted
by Mohit Nanda
on Stack Overflow
See other posts from Stack Overflow
or by Mohit Nanda
Published on 2009-06-29T10:58:40Z
Indexed on
2010/03/27
3:03 UTC
Read the original article
Hit count: 420
Hi,
I need a regular expression to validate a timestamp of the format, using Javascript:
YYYY/MM/DD HH:MI:SS
I tried cooking up a few, but seems my regex skills fail to cover something or other.
Please give me a reference or way to do it.
P.S. : I mention regex, only as a suggestion. Im using Javascript and welcome any alternative.
© Stack Overflow or respective owner