The deadline to change parties for a primary election is always 25 days before the general election, for it to change after the general election. For example. To vote in the 2019 primary, you would need to change your party before October 13th, 2018. If you miss that deadline, you would have to wait until 2020 for your party change to go into effect.
Last October
Thanks! Your answer is awaiting moderation.