State tax filing

Will they make me pay the NYC tax based on the full year or can I tell them when I moved specifically and provide my income from the time I was living in NYC to be taxed?