3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("America/Los_Angeles"); $startDate = "04/04/2016 7:00 AM America/New_York"; $ts = strtotime($startDate); $dt = new DateTime(); $dt->setTimestamp($ts); echo $dt->format("Y-m-d H:i:s\Z");
based on C4NtK
Output for 5.5.0 - 7.3.0beta1
2016-04-04 04:00:00Z