"It was my birthday yesterday" vs. "My birthday was yesterday"

Is there a difference between the following sentences?

It was my birthday yesterday.

My birthday was yesterday.

When should I use "it was something yesterday/a few days ago/..." and when should I use "something was yesterday/..."?


Clearly, they both mean the same thing, but they would be used on different occasions. If someone said to you ‘What are you doing for your birthday tomorrow?’ you might reply, with a steely look, ‘My birthday was yesterday.’ On the other hand, if someone said to you ‘Hey, how come you’ve got all those presents?’ then an appropriate reply would be ‘It was my birthday yesterday.’ But much depends on how each is said.