State tax filing

A follow up question: All my income is from NY source but I am part year resident of NY and NJ both. In my NY return do I need to allocate the NY source income in the proportion of number of days stayed in NY and NJ? Or I allocate 100% of NY income to NY?