XMP datecreated

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
misscheevius
Posts: 3
Joined: Wed Jan 29, 2025 6:59 am

XMP datecreated

Post by misscheevius »

Hello,

Downloaded photos from Apple. Date in exif is date file saved, the date picture taken is available in XMP photoshop:datecreate (sidecar).

Any way that I can (batch) rename the photos/videos based on the XMP date?

Thank you.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: XMP datecreated

Post by michel038 »

XMP:DateCreated, or XMP-photoshop:DateCreated

Currently, this date is not available in "rename" drop down menu ...

A workaround is to copy xmp:datecreated into exif:createdate by using exiftool add-on in the "Open with" feature ..
How to use ExifTool in XnViewMP
You can choose a name for it e.g. xmp2exifDate
The parameter is

Code: Select all

-k "-exif:createdate<xmp:datecreated"
(double quotes for Windows)
Select files, Right click, Open with, xmp2exifDate

- You can add this parameter in the same line, to avoid creation of backup (bak) files :

Code: Select all

-overwrite_original
Then you can rename the photos with exif date taken field

Another method,
Use Exiftool to rename files with this parameter

Code: Select all

-k -"filename<xmp:datecreated"
I think that exiftool can also use some custom date formats

Oops mistake with quotes :

Code: Select all

-k "-filename<xmp:datecreated"
.

This date is not handled very well in XnViewMp, and is not available in most menus (any menu)
The only way to modify it is to use "Edit IPTC" dialog, Date/Time tab, with Mode = "XMP only" option (Options tab)
It seems that "Edit XMP" screen does not offer this field... strange
Last edited by michel038 on Fri Jan 31, 2025 1:44 pm, edited 3 times in total.
misscheevius
Posts: 3
Joined: Wed Jan 29, 2025 6:59 am

Re: XMP datecreated

Post by misscheevius »

Thanks

Managed to get them sorted with your instructions, and ultimately as below (in case anyone else trying to work it out!)
1. xmp2exifDate: -k "-exif:createdate<xmp:datecreated" -overwrite_original
2. then run batch rename with: {EXIF:Date Digitized [Y_m_d_]
3. -k -"filename<xmp:datecreated"

Can i ask advice for converting a MOV file, trying to relabel based on the (exiftool) create date or modify date? Cant seem to work out that code.
Correct date also appears in properties encoded date (but not create or modified date)
Tags for the MOV appear as below, thanks for any suggestions, otherwise Ill create a new thread!

[System] FileModifyDate : 2025:01:10 21:20:43+10:30
[System] FileAccessDate : 2025:01:31 20:17:28+10:30
[System] FileCreateDate : 2024:12:30 01:03:10+10:30
[QuickTime] CreateDate : 2021:12:26 08:52:10
[QuickTime] ModifyDate : 2021:12:26 08:52:11
[Track1] TrackCreateDate : 2021:12:26 08:52:10
[Track1] TrackModifyDate : 2021:12:26 08:52:11
[Track1] MediaCreateDate : 2021:12:26 08:52:10
[Track1] MediaModifyDate : 2021:12:26 08:52:11
[Track2] TrackCreateDate : 2021:12:26 08:52:10
[Track2] TrackModifyDate : 2021:12:26 08:52:11
[Track2] MediaCreateDate : 2021:12:26 08:52:10
[Track2] MediaModifyDate : 2021:12:26 08:52:11
[Track3] TrackCreateDate : 2021:12:26 08:52:10
[Track3] TrackModifyDate : 2021:12:26 08:52:11
[Track3] MediaCreateDate : 2021:12:26 08:52:10
[Track3] MediaModifyDate : 2021:12:26 08:52:11
[Track4] TrackCreateDate : 2021:12:26 08:52:10
[Track4] TrackModifyDate : 2021:12:26 08:52:11
[Track4] MediaCreateDate : 2021:12:26 08:52:10
[Track4] MediaModifyDate : 2021:12:26 08:52:11
[Track5] TrackCreateDate : 2021:12:26 08:52:10
[Track5] TrackModifyDate : 2021:12:26 08:52:11
[Track5] MediaCreateDate : 2021:12:26 08:52:10
[Track5] MediaModifyDate : 2021:12:26 08:52:11
[Keys] CreationDate : 2021:12:26 19:22:10+10:30
Post Reply