prevent error with date-only pair (no time inputs)