Source Code:
(back to article)
<?php $dateTime = new DateTime('2023-03-03 12:00:00', new DateTimeZone('America/New_York')); echo $dateTime->format('Y-m-d H:i:s T'); // outputs "2023-03-03 12:00:00 EST"
Result:
Report an issue