ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: rouble on March 10, 2014, 12:33:35 PM

Title: Best way to get create date from photo or video
Post by: rouble on March 10, 2014, 12:33:35 PM
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
Title: Re: Best way to get create date from photo or video
Post by: Phil Harvey on March 15, 2014, 08:13:24 AM
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