Looking up...
我昨天去了公园。
I went to the park yesterday.
The day before today; the most recent past day.
昨天下雨了。
It rained yesterday.
他昨天告诉我这个消息。
He told me the news yesterday.
Used in both spoken and written Chinese to refer to the immediate past day.
昨天 refers specifically to the day before today. Use 前天 (the day before yesterday) and 明天 (tomorrow) for other time references.
Chinese often omits the word 'day' when the context is clear. For example, '昨天' means 'yesterday' without needing to say 'day' explicitly.
From Middle Chinese 昨天 (dzak then), combining 昨 (yesterday) and 天 (day). The term has been used in Chinese for centuries to denote the day before today.
昨天 is the most common term for 'yesterday' in Mandarin Chinese. It is always used in reference to the calendar day preceding the current day. In formal writing, 昨日 may be used, but it sounds more literary or formal.