Answers for "PHP Notice: date_default_timezone_set(): Timezone ID"

PHP
4

date_default_timezone_set india

date_default_timezone_set('Asia/Kolkata');
$timestamp = date("Y-m-d H:i:s");
Posted by: Guest on May-03-2020
0

date_default_timezone_set php bangladesh

$dt = new DateTime('now', new DateTimezone('Asia/Dhaka'));
echo $dt->format('F j, Y, g:i a');
Posted by: Guest on July-27-2021

Code answers related to "PHP Notice: date_default_timezone_set(): Timezone ID"

Browse Popular Code Answers by Language