When a file's EXIF Date/Time Original contains a partial date, e.g. 2009:01 - year and month but no day, there is an inconsistency when extracting the date field:
exiftool -DateTimeOriginal file.jpg
Date/Time Original : 2005:01: 00:00:00
exiftool -exif:DateTimeOriginal -d "y=%Y m=%m d=%d" file.jpg
Date/Time Original : y=2004 m=12 d=31
I understand why it is happening, but the formatted date has the wrong value. Also if %d is returning the last day of the previous month instead of blank or nothing, is there any way to list files that are missing the day value using an -IF EXPR?
Thanks,
Dan Schless