Change Old WordPress Post Date Year
I have old WordPress posts that were published way back in 2017, 2018, and 2019. I would like to republish this content. Basically, what I want is that all content from 2017 to be republished in 2021, 2018 in 2022, and 2019 in 2023. Is there any possible way I can do this without doing some changes to the database? Is it possible to have a function that I can put in my functions.php to achieve this goal?