Establishing residency
The legal moment a state starts treating you as one of its residents. That moment starts every license, registration and insurance deadline.
Every deadline on this site runs from the day you establish residency, which is not always the day the moving truck arrived. States define residency by conduct.
The usual triggers are accepting employment in the state, enrolling a child in a state school, registering to vote, claiming a resident tax benefit such as a homestead exemption, or being present for a defined period. Arizona uses seven months in a calendar year or non-seasonal employment. New Mexico presumes residency after 30 days' work within any 60-day period. Louisiana deems residency to begin on the date it issues you a license.
If two states could both plausibly call you a resident, ask a tax or legal adviser. This site can tell you how each state defines the term, quoted on its own page.