javascript - Convert indian standard time to mysql datetime format using php -
i have indian standard time ,
wed oct 08 2014 07:40:00 gmt 0530 (india standard time) , created javascript,
now want alter format 2014-11-10 07:40:00 store in mysql.
how can this.
i hope help you
$date = "wed oct 08 2014 07:40:00"; echo date('y-m-d h:i:s',strtotime($date));
output
2014-10-08 07:40:00
javascript php mysql datetime
No comments:
Post a Comment