I-M-JM
I-M-JM

Reputation: 15950

MySQL time stamp issue

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

Answers (1)

deceze
deceze

Reputation: 522016

date('Y-m-d H:i:s', strtotime('2010-12-29T20:42:49.929-08:00'));

Upvotes: 7

Related Questions