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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -