Web Design, Development & Marketing
acuras services: Website Design & Development E-commerce Solutions Content Management Systems Online Marketing & Social Media Corporate Branding Social Media Training
Get in touch... Email Us: info@acuras.co.uk
acuras blog:7 Quick Tips to Keep Your SEO On Track in 2012 7 Social Media & SEO Tactics Businesses Will Adopt in 2012 latest posts:We are now trading as a Limited company Recent Work: Digital Marketing Material and Website Re-Designs Affordable Web Hosting and Domain Name Registration New Acuras Logo Coming Soon... Barclaycard ePDQ CPI Integrations HSBC XML API / CPI E-commerce Integrations Photoshop to Valid XHTML/CSS Coding Service Recommended Open Source Invoicing System Reasons Businesses should Embrace the Web blog archive:
Web Development ArticlesMySQL: Convert a Datetime Value to a Different Time Zone
Published: 17th Mar 2006
This is a useful function for MySQL when wanting to change the time zone of a date already stored in your database. The syntax for the MySQL change time zone function is as follows:
"dt" represents the datetime value, "from_tz" specifies the original time zone, and "to_tz" specifies the time zone to which the datetime value is to be converted. Some example MySQL queries using the "convert_tz" function are shown below:
You can find out more about MySQL Date and Time functions at MySQL Date and Time Functions. Related LinksRelated Articles / PostsRecommended Open Source Invoicing System (25/03/2009) Recent Recommended Links - October 2008 (03/10/2008) Recent Recommended Links - April 2008 (11/04/2008) Recent Recommended Links - March 2008 (16/03/2008) Tutorial: Importing Excel Data to MySQL using phpMyAdmin (11/05/2007) |
||