Use date in Filename to add into Exif data?

Started by Erik7, February 14, 2021, 06:57:24 AM

Previous topic - Next topic



I have about 500 photo's where there is no date/time in the Exif data. This makes it difficult to sort my photo's.
However, the filename contains the correct date, for example: IMG-20160102.jpg

My question is: Is it possible to add the date (out of the filename) into the Exif data? And also in bulk for the other photo's?


PS: Sorry for my bad English!  :-\

Phil Harvey

Hi Erik,

Try this:

exiftool "-alldates<${filename} 00:00:00" DIR

- 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 ($).


Hi Phil,

This worked very well!

Thanks a lot for the help!