convert tz mysql

Solutions on MaxInterview for convert tz mysql by the best coders in the world

showing results for - "convert tz mysql"
Brahim
12 Apr 2018
1CONVERT_TZ(datetime, from_tz, to_tz)
2
3Example: 
4SELECT CONVERT_TZ('2031-09-21 02:42:14', 'UTC', 'America/New_York');
5output: 2031-09-20 22:42:14 
Chiara
15 Nov 2016
1##Syntax: 
2##CONVERT_TZ(datetime, from_tz, to_tz)
3
4SELECT CONVERT_TZ('2008-05-15 12:00:00','+00:00','+10:00');
5##Output: 2008-05-15 22:00:00