Closed zertrin closed 10 years ago
why you don't use timestamp for storing and use date function in php to convert it to iso 8601 date
Well it doesn't bring a lot, you can already convert from ISO 8601 to timestamp or anything directly in the database. (see http://www.sqlite.org/lang_datefunc.html). The ISO8601 string keeps it simple, yet flexible.
ok
Thank you for the commit and the details :)
Store the date as ISO 8601 YYYY-MM-DD HH:MM:SS string
There is no true DATE type in SQLite (http://www.sqlite.org/datatype3.html)
I think ISO8601 strings are in our case a good balance between readability and usefulness.