DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
regex to check date format php
if (preg_match("/d{4}-d{2}-d{2}/", $date)) { echo 'true'; } else { echo 'false'; }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#regex
#check
#date
#format
#php
ADD COMMENT
Topic
COMMENT
Name
6+8 =
Submit