Current Time in DateTime PHP -
is correct way current time in php using datetime?
$currenttime = new datetime(); $currenttime2 = $currenttime->format('h:i:s');
i believe can this
$date = date('y-m-d h:i:s');
is correct way current time in php using datetime?
$currenttime = new datetime(); $currenttime2 = $currenttime->format('h:i:s');
i believe can this
$date = date('y-m-d h:i:s');
Comments
Post a Comment