Link to home
Start Free TrialLog in
Avatar of trung85gn
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
ASKER CERTIFIED SOLUTION
Avatar of MacAnthony
MacAnthony
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kiran Paul VJ
If you use mktime, you will need to parse the original time format. IMO, it's easier to let strtotime parse it.
Avatar of trung85gn
trung85gn

ASKER

Thanks & Regards

TrungGN