Change the Modification and Creation dates of a file - Sonoma 2024
People seem to have a lot of trouble in the past changing these dates, but I've successfully used the base level touch -t in Terminal:
To change the creation date of a file in terminal paste in the below: (that will make the date 2001, january 15, 11:50pm - change it to the date you want - format is YYYYMMDDhhmm)
touch -t 200101152350
make sure there is a space after the last digit (this is where most people fail, inclucing myself until I realized it was missing.)
then drag the file into the terminal window so it populates it with the file path, then press return and it should work. Text should look like this before you press return:
touch -t 200101152350 /Users/g/Desktop/IMG_4074.jpg
After pressing return, get info on the file and it should look like this
Mac Studio, 14.5