State tax filing

I have this exact same question (moved from DC to NY), how do I determine the answer to this?