Well, if it is a year or smaller, use the prepositional. Anything over takes the accusative...

В прошлОМ годУ