Checks if this is before the date of other, ignoring time.
this
other
bool isBeforeDate(DateTime other) => dateOnly.isBefore(other.dateOnly);