Understand the Timezone Differences between DATETIME and TIMESTAMP Fields in MySQL

Learn to store and display time with timezone info correctly in MySQL

Lynn G. Kwong
Level Up Coding
Published in
4 min readApr 4, 2024

--

Image by geralt on Pixabay

There are some subtle but important differences between the DATETIME and TIMESTAMP fields in MySQL. The most prominent difference is that a TIMESTAMP field can only store dates from 1970 to 2038, while a…

--

--

I’m a Software Developer (https://medium.com/@lynn-kwong) keen on sharing thoughts, tutorials, and solutions for the best practice of software development.