Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Convert DateTime to String in PHP

phpCopy$date = explode("/",date('d/m/Y/h/i/s')
list($day,$month,$year,$hour,$min,$sec) = $date);
echo $month.'/'.$day.'/'.$year.' '.$hour.':'.$min.':'.$sec;

//output: 03/08/2020 02:01:06
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Convert #DateTime #String #PHP
ADD COMMENT
Topic
Name
2+4 =