Answers for "change strint to date time php"

PHP
0

Convert String to Date and Date-Time in PHP

phpCopy$oldDate = strtotime('03/08/2020');

$newDate = date('Y-m-d',$time);

echo $newDate;
//output: 2020-03-08
Posted by: Guest on April-23-2021

Browse Popular Code Answers by Language