php get date using timezone
<?php
$date = new DateTime("now", new DateTimeZone('America/New_York') );
echo $date->format('Y-m-d H:i:s');
php get date using timezone
<?php
$date = new DateTime("now", new DateTimeZone('America/New_York') );
echo $date->format('Y-m-d H:i:s');
PHP DateTime Format date time according to a time zone
$date = new \DateTime($his['DATE_TIME']);
$date->setTimezone(new \DateTimeZone('Asia/Karachi'));
echo $date->format('F j, Y, g:i a');
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us