[MySQL] Convert a date and time between time zones

Created on November 29, 2026

You can use CONVERT_TZ() to convert a date and time from one time zone to another. Pass the date and time first, followed by the source and destination time zones.

SELECT CONVERT_TZ('2022-07-10 10:00:00', 'UTC', 'Asia/Tokyo') AS tokyo_time;
+---------------------+
| tokyo_time          |
+---------------------+
| 2022-07-10 19:00:00 |
+---------------------+

The server needs populated time zone tables to use names such as UTC and Asia/Tokyo. If it cannot resolve either name, the function returns NULL.

MySQL