Write reformatted date field into xmp:Description

Started by Greyfox, February 24, 2021, 04:14:35 AM

Previous topic - Next topic

Greyfox

I can reformat the display of the date from DateTimeOriginal using Exiftool -DateTimeOriginal -d "%d %B %Y %H:%M:%S" however I'm at loss as to how to get the reformatted date string into the xmp:Description Field.

Any suggestions would be appreciated.

Phil Harvey

exiftool -d "%d %B %Y %H:%M:%S" "-xmp:Description<DateTimeOriginal" FILE

or

exiftool -d "%d %B %Y %H:%M:%S" "-xmp:Description<some text ${DateTimeOriginal} some more text" 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 ($).