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');
Comments
Post a Comment