Replace the creation date with modified date

Started by judeh, July 16, 2023, 06:35:07 PM

Previous topic - Next topic

judeh

I have tried for ages to try and overwrite the creation date of my .JPG files with the modified date of that same file, but with no luck. Either I would get an Error 256, or it would just replace both dates with the current date and time.

I have tried using the commands found here and here but with no luck.

Can anyone advise how to fix this?

If it helps at all, I'm on macOS.

Phil Harvey

I think you are talking about the filesystem creation date.  The command to copy the filesystem modification date to this is:

exiftool "-filecreatedate<filemodifydate" FILE

Note: Requires "setfile" for writing on Mac, which may be installed by typing xcode-select --install in the Terminal

To avoid confusion about which tags are which, you can use this command to list all date/time tags and the locations where they are found:

exiftool -a -G1 -s -time:all FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).