Database: Storing Dates as Numeric Values
Posted
by Chin
on Stack Overflow
See other posts from Stack Overflow
or by Chin
Published on 2010-03-15T01:17:26Z
Indexed on
2010/03/15
1:19 UTC
Read the original article
Hit count: 287
database
|database-design
I'm considering storing some date values as ints. i.e 201003150900
Excepting the fact that I lose any timezone information, is there anything else I should be concerned about with his solution? Any queries using this column would be simple 'where after or before' type lookups. i.e Where datefield is less than 201103000000 (before March next year).
currently the app is using MSSQL2005. Any pointers to pitfalls appreciated.
© Stack Overflow or respective owner