Question: when is 12 am night or day?
Answer: Another convention sometimes used is that, since 12 noon is by definition neither ante meridiem (before noon) nor post meridiem (after noon), then 12am refers to midnight at the start of the specified day (00:00) and 12pm to midnight at the end of that day (24:00).