php - Paypal IPN return datetime formatting -


palpal sandbox ipn returning datetime mon jun 15 2015 12:04:00 gmt+0600 (azores standard time). how format in php? please @ date format. not duplicate.

if remove (azores standard time) date become valid, , can use strtotime() or datetime:

$string = 'mon jun 15 2015 12:04:00 gmt+0600 (azores standard time)'; $string = substr($string, 0, strrpos($string, '(') - 1); $dt = new datetime($string); echo $dt->format('c \o\r u'); 

demo


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -