How to convert date time to mysql date format in php -


this question has answer here:

how convert below date format mysql date format fetch data,

01:14:30 pm wed 6th september 2017 

my tried code below,

$t= "01:14:30 pm wed 6th september 2017"; echo date("y/m/d h:i:s",strtotime($t)); 

but not exact result, reult 2017/09/06 00:00:00 , need exact result 2017-09-06 13:14:30 how exact result ,any appreciated

just put time @ end.

$t= "wed 6th september 2017 01:14:30 pm "; 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -