When did the Democrats and Republicans officially switch names, and how was this done?

I’ve seen several democrats here say the republicans and democrats changed names, that the modern day Democratic Party was once called the Republican Party and vice versa.

I can’t seem to find any information about the parties ever switching names however. Can someone provide more information please?
46 answers 46