State tax filing

Thanks!

 

What constitutes a proof of change of residency? For example, if I still had a lease in a New York apartment through July, would I be considered as a New York resident through July, even though I moved out in March?