After you file

Because you started and ended in that same state you file a resident return so you don't need dates.  The other state you will file as a non resident since you did not stay past the end of the year.  Complete the non resident state first so the proper credit on the resident state is calculated correctly even if you will not efile the non resident state at the same time as the resident state.