Question: when does a day end?
Answer: Each suceeding day therefore ends at midnight 12:00:00. The next day begins a nanosecond after midnight. So, it seems most accurate to say that each day ends at midnight, and the next day starts “immediately after midnight.”