Answers for "how to convert strtotime to time in php in d-m-y"

PHP
2

php date strtotime format

$date = '25/05/2010';
$date = str_replace('/', '-', $date);
echo date('Y-m-d', strtotime($date));
Posted by: Guest on December-03-2020

Code answers related to "how to convert strtotime to time in php in d-m-y"

Browse Popular Code Answers by Language