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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -