The best way to store date/time in MySQL for use with 'date' helper? |
[eluser]danmontgomery[/eluser]
You can use mysql's datetime instead of timestamp if you're unsure about the date range. Storage costs 8 bytes instead of 4, no timezone conversion happens and you lose the "on update current_timestamp" functionality. Per http://dev.mysql.com/doc/refman/5.0/en/datetime.html, the range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. Other than that they are functionally the same. |
Messages In This Thread |
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 07-15-2008, 11:33 AM
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 06-13-2010, 11:58 AM
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 06-14-2010, 12:48 AM
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 06-14-2010, 03:16 PM
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 06-15-2010, 01:13 AM
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 06-15-2010, 01:30 AM
The best way to store date/time in MySQL for use with 'date' helper? - by El Forum - 06-15-2010, 07:15 AM
|