简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM