A single appointment cannot extend across multiple days.
The start time and end time must be on the same date. For example, you cannot book an appointment that starts on January 1st at 11pm and ends on January 2nd at 1am.
If an appointment's duration will span across multiple days, it will need to be split into 2 separate appointments, with the end time of the first appointment falling at 11:59pm (or sooner).