DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
use regex to make sure it is a date
^[0-3]?[0-9]/[0-3]?[0-9]/(?:[0-9]{2})?[0-9]{2}$
Source by www.oreilly.com #
PREVIOUS
NEXT
Tagged:
#regex
#date
ADD COMMENT
Topic
COMMENT
Name
9+9 =
Submit