Answers for "how to check user enter a date or not text using php"

PHP
0

php check if input is date

function isRealDate($date) { 
    if (false === strtotime($date)) { 
        return false;
    } 
    list($year, $month, $day) = explode('-', $date); 
    return checkdate($month, $day, $year);
}
Posted by: Guest on November-08-2020

Code answers related to "how to check user enter a date or not text using php"

Browse Popular Code Answers by Language