calendar-date-compare

calendar-date-compare is a compiled Lisp function in `calendar.el'.

(calendar-date-compare DATE1 DATE2)

Return t if DATE1 is before DATE2, nil otherwise.
The actual dates are in the car of DATE1 and DATE2.