What state? Please advise so we can look this up for you. Different states have different criteria for nonresidents, part-year residents, and residents.
See the attached for more details on determining when you are considered a resident for New York.
You became a resident of NY on the day you began living in your new home in NY. Temporary lodging such as a hotel doesn't count.