* Ontem: This is the most common and general way to say "yesterday."
* No dia anterior: This translates literally as "on the previous day" and is used in more formal contexts.
So, you can use "Ontem" in everyday conversation, while "No dia anterior" might be more appropriate in written documents or formal speeches.