This document discusses storing dates and times as single integer values. It begins by showing a simple method to store a date as a single number by bit manipulation of the month, day and year values. However, this has deficiencies like arbitrary ranges and inability to compare dates. The document then proposes improvements like constraining the ranges to begin at 0 and placing the most significant part of the date, the day, in the leftmost bits for sorting. It suggests using bit fields for cleaner extraction and defines structures to convert between integer and date values. For time, the issues are similar but times are more deterministic than dates. Standards like POSIX timestamps are mentioned.