PHP - Changing the datetime to mysql readable datetime -
my date , time string is: january 28, 2010 1417
last 4 numbers being time. how should go converting string acceptable mysql?
when try using strtotime warning: strtotime(): not safe rely on system's timezone settings.
$timestamp = strtotime($string); date("y-m-d h:i:s", $timestamp);
Comments
Post a Comment