There are different formal formats you can use. It depends on who the recipient is and the purpose of the letter.
For the United States, this is the most common formal format that I see:
There is also this format too, but I cannot recall a time that I've seen this format used in letters that I have received in the mail. Again, I am only speaking from my experience in the United States. For other English speaking countries, this may be more common.