Which one of the following types of writing is considered formal?

A. An instant message to a co-worker about after-hours plans
B. An invitation to an anniversary party
C. A personal email to a friend
D. A cover letter with a job application