trung85gn
asked on
Convert a String To DateTime Format
Hi experts,
I have a problem with datetime format in PHP
Example : I have a string : "2007-10-06 20:45:00" (a datetime string) , and How to that string convert to "20:45 06-10" ?
Thanks & Regards
TrungGN
I have a problem with datetime format in PHP
Example : I have a string : "2007-10-06 20:45:00" (a datetime string) , and How to that string convert to "20:45 06-10" ?
Thanks & Regards
TrungGN
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you use mktime, you will need to parse the original time format. IMO, it's easier to let strtotime parse it.
ASKER
Thanks & Regards
TrungGN
TrungGN
http://in.php.net/manual/en/function.mktime.php