CONVERT_TZ
Convert a datetime value between time zones. This function shifts a timestamp from a source time zone to a target time zone.
Syntax
CONVERT_TZ(dt,from_tz,to_tz)Description
Examples
SELECT CONVERT_TZ('2016-01-01 12:00:00','+00:00','+10:00');
+-----------------------------------------------------+
| CONVERT_TZ('2016-01-01 12:00:00','+00:00','+10:00') |
+-----------------------------------------------------+
| 2016-01-01 22:00:00 |
+-----------------------------------------------------+Last updated
Was this helpful?

