Avoid writing 12 midnight or 12 noon, which is considered by many redundant.
See also a.m., p.m., TIME OF DAY.