Rearranging date tags

Started by Iwonder, May 09, 2024, 06:24:52 AM

Previous topic - Next topic

Iwonder

it's official : I am dumb !

I'd like text outputs from CreateDate, DateTimeOriginal, and FileModifyDate to keep only day, month and year, in this order (ie : 09/05/2024)
I tried the -d option and I didn't succed.
exiftool -T -L -Filename -d "%d%d/%m%m/%Y%Y%Y%Y" -CreateDate
all I get is "d/m/YY" instead of tags...

I tried so many other combinations, searched the forum, unsuccessfully, but now I'm asking here how to make it, cause I am sure I didn't understood the right way to do it. And I'm sorry for this ; Id be so grateful if someone could help me...
French newbie
Other work as volunteer : https://btaliercio.wixsite.com/easy-greek-buttons/en

stoffball

You need to use only a single d/m/Y:
exiftool -T -L -Filename -d "%d/%m/%Y" -CreateDate
When you get d/m/Y you are using this probably from a batch file. In this case you have to double the percent sign:
exiftool -T -L -Filename -d "%%d/%%m/%%Y" -CreateDate
This is FAQ 27

Iwonder

@stoffball

Thank you so much !
I stopped to 23b. "ExifTool doesn't write some tags to a file", and my quick vertical reading in English language is too too bad...
Thank you again !!!
French newbie
Other work as volunteer : https://btaliercio.wixsite.com/easy-greek-buttons/en