Best way to get create date from photo or video

Started by rouble, March 10, 2014, 12:33:35 PM

Previous topic - Next topic

rouble

Experts,

Today, the way I try to get the create date of a photo or a video is by looking for the following tags in order:
   DateTimeOriginal
   CreateDate
   ModifyDate
   FileModifyDate

If I can't find any of the tags, I just get the file's modification time. Are there any tags I am missing? Is this overkill?

What is the best way to get the creation date of a photo or a video?

tia,
rouble

Phil Harvey

It sounds like your image may not contain EXIF, but here is the best way to get all of the date/time stamps from a file:

exiftool -a -time:all -G FILE

where FILE is the name of your 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 ($).