Question: is 12 am part of the next day?
Answer: Since noon is neither before nor after noon, and midnight could be considered the end of one day or the start of the next, neither label fits. However, it's a very common interpretation that 12:00AM means midnight (00:00 in 24-hour notation) and 12:00PM means noon (12:00 in 24-hour notation).