Answers for "strtotime converts date changin month and day"

PHP
1

strtotime format

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

Code answers related to "strtotime converts date changin month and day"

Browse Popular Code Answers by Language