A variety of different styles may be acceptable for formal invitations. The following style should be used in text for print and electronic communications.
Use numbers for times, except for noon and midnight, use a colon to separate hours and minutes and do not use ciphers (double zeros) with whole hours.
Hyphens may be used with dates (July 18-21), and should always be used with dates when both days of the week and dates are included.
When listing a beginning and ending time separated only by the word “to,” or when listing a series of times when all times listed are a.m. or p.m., use a.m. or p.m. only once, following the final time listed.
References to midnight can cause confusion. Is midnight Friday at the beginning or at the end of Friday? That’s why insurance policies usually take effect at 12:01 a.m. and why airline schedules always list flights at 11:59 p.m. or 12:01 a.m. and not midnight.
In many references, midnight is perfectly acceptable. In the sentence, “The dance will be held from 8 p.m. to midnight Friday,” the meaning is clear.