To schedule a job that runs over midnight you need to create an ongoing visit for the second day. This is done automatically when you sent the end time before the start time.
Schedule the job as usual and set the end time before the start time (for example 3am in the morning)
In the popup, click Create two visits
Two ongoing visits are created for this job
Please note: If rescheduling this job you need to move each job visit individually
Ongoing job visits share:
Job number
Job status
Job items
Sales documents
Timesheets
Technicians are not shared
All custom fields
For more information about ongoing jobs see: Schedule an ongoing job