Why use `date()` when comparing for equality?