Programming
EN
Good to know: how to properly store date and time values in MySQL
[]
A Web Developer's Diary - Blog
MySQL has two native field types that can store information about both date and time: timestamp and datetime. The major differences between timestamp and datetime field types are:timestamp can hold values only in the range '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC while datetime can hold any value in the range '1000-01-01 00:00:00' to '9999-12-31 23:59:59'.timestamp is the only mysql field type that stores values relative to a timezone (namely UTC) [...]