Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Sqldate Mysql Time Zone Conversion

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Time Zone Conversion

Advertisement
The Tutorial illustrate you an example from 'Mysql Time Zone Conversion' that describes you about the time zone conversion.

Mysql Time Zone Conversion

     

The Tutorial illustrate you an example from 'Mysql Time Zone Conversion' that describes you about the time zone conversion.

SYNTAX:-CONVERT_TZ(dt,from_tz,to_tz)

CONVERT_TZ() is the function that is used for converting a date time value  from one time zone to the other time zone.

dt:-This is the date which is to be converted.

from_tz:-This is the time zone which is to be converted

to_tz:-This is the time of the zone which is to be displayed in the table.

Query:-

SELECT CONVERT_TZ('2008-12-15 00:00:00','-06:00','+05:30');

Output:-

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 31, 2008

Related Tutorials

Discuss: Mysql Time Zone Conversion  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com