Investors & landlords

What if I live in NY part of the year and own rental property in another state (IL), how would that be handled? Would that be considered NY resident income for the time I lived in NY?

 

Or could it not be considered income for NY and a nonresident IL can be filed since I did not live in IL?