this question has answer here:
- convert 1 date format in php 12 answers
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
Post a Comment