Search
 
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
Name
6+8 =