Formatted output by selection of timezone and date & time

Interpret a date and time in a selected timezone

Use a named IANA timezone with DateTimeImmutable so the input is interpreted with an explicit timezone instead of relying on a server default.

$utc = new DateTimeImmutable('2026-09-14 12:00:00', new DateTimeZone('UTC'));
$india = $utc->setTimezone(new DateTimeZone('Asia/Kolkata'));
echo $india->format('Y-m-d H:i:s T');

Current example first; the detailed examples and demos below are retained for additional learning and comparison.

Select Timezone
Date with Hour & Min






Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer