I'm not sure what you mean by 2009 pictures "showing up" in 2023. Do you mean that the picture appears in the Library with pictures from 2023, or do you mean that when you look at the info window you see a 2023 date, event though it was taken in 2009?
Where the pictures show up in the Library depends on how you sort the Library. If the date in the info window is 2009, and if you have the Library sorted by date captured,

then the picture will appear with other 2009 pictures. If you have the Library sorted by Date Added,

then the 2009 pictures, loaded in 2023, will appear with others added in 2023. By the way, be careful that "Filter" is set to "All Items."
Pictures that are scanned, or which come through some emails or texts or other services, may lose the actual "Captured Date" information, and the date that the resulting file was arrived will be substituted. If you're asking how to change the date that you see in the info window

then you can change that with the Adjust menu.
Let us know which way you mean and how this works for you…