Reputation: 15950
I have a time-stamp, which is returned from PayPal as
2010-12-29T20:42:49.929-08:00
Now I need to convert it to MySQL DateTime format, using PHP
Anyone is having solution, how to convert it?
Thanks.
Upvotes: 2
Views: 476
Reputation: 522016
date('Y-m-d H:i:s', strtotime('2010-12-29T20:42:49.929-08:00'));
Upvotes: 7