Php Current Datettime Us Time Zone

[Solved] Php Current Datettime Us Time Zone | Php - Code Explorer | yomemimo.com
Question : php current datettime us time zone

Answered by : arrogant-ape-94gd8klhvmtj

<?php
$date = new DateTime("now", new DateTimeZone('America/New_York') );
echo $date->format('Y-m-d H:i:s');

Source : https://stackoverflow.com/questions/8006692/get-current-date-given-a-timezone-in-php | Last Update : Mon, 10 Aug 20

Answers related to php current datettime us time zone

Code Explorer Popular Question For Php