Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

pasar datetime a string php

$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: #pasar #datetime #string #php
ADD COMMENT
Topic
Name
3+7 =