I keep some records in the database. The record has a "last visit" field, which is a timestamp. If the record has not yet been visited, the timestamp is invalid. I am currently storing a future date, for example. '2101-01-01 00:00:00' in the 'last visited' field to indicate an invalid date.
Is there a better way to indicate the date is "invalid". What is the recommended βbest practiceβ for this?
I am using MySQL, but ideally the recommendation should be db agnostic
source
share