Get your taxes done using TurboTax

So it's actually Both.  Well actually the year you got paid.  You might have gotten paid in Jan 2017 for the last week you worked in Dec 2016.