eg. In 2010, he will run out of food.

(How do you pronounce '2010' in the sentence?)

I'd pronounce the year 2010 as twenty-ten.

Two thousand ten

To pronounce "2010" in the sentence, you would say "twenty-ten" or "two thousand ten".