Paypal return date

PayPal Express Checkout returns an array of responses. Part of this answer is this key:

[TIMESTAMP] = 2012-03-14T08: 49: 22Z

I am inserting a response into my database. However, the timestamp does not seem to match the valid format for my column. The column details are as follows:

Column | Type ------------------------ DateCreated | datetime 

How to convert the returned timestamp to something suitable in my database?

+6
source share
1 answer
 $date = date('Ymd H:i:s', strtotime ('2012-03-14T08:49:22Z')); 
+6
source

Source: https://habr.com/ru/post/910685/


All Articles