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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -