Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the best way to handle timestamps in database driven websites?

0
Posted

What is the best way to handle timestamps in database driven websites?

0

time stamps can be tricky in some ways to deal with. My company stores this information as a numeric value only. The time and date are 2 separate fields in the databases. The date is always stored in numeric as YYYYMMDD……This, for sorting purposes, doesn’t require any trickery with date objects or translations as numbers will naturally sort correctly. The time is always stored as 24 hour time and is HHMM. Again, as a numeric, the values naturally sort correctly. I have dealt with actual date/time stamps and do not prefer them as numerics are always easier to deal with. If you require precision of time and date, then the timestamps are the best solution as it defines down to the fraction of a second…..which is necessary for a busy site.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.