Midnight at the start of a day is written 0000. 2400 is sometimes used informally to mean the very end of a day (as in a schedule that runs “through 2400”), but as a specific point in time, 0000 is the standard.