Answers for "how to convert srting date to numeric date in php"

PHP
1

convert string to date php

$s = '08/11/2010 19:37:02';
$date = strtotime($s);
echo date('Y-m-d H:i:s', $date);
Posted by: Guest on November-13-2020

Code answers related to "how to convert srting date to numeric date in php"

Browse Popular Code Answers by Language