Batch rename with ExifTool: problem with timeformat

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

Moderator: xnview

Marcusb123
Posts: 2
Joined: Thu Feb 12, 2026 10:02 am

Batch rename with ExifTool: problem with timeformat

Post by Marcusb123 »

Hello everyone,

I am trying to rename a lot of my old photos (jpg) to the format: yyyy-mm-dd HHmmss (i.e. 2014-03-18 184507)
Sometimes I can do this with the command: {META:CreateDate [Y-m-d HMS]}
But a lot of times the right date and time are in the ExifTool-information under CreateDate.

If I try the command {ExifTool:CreateDate [Y-m-d HMS]} it returns a name with dashes in between the hour-minute-seconds, like 2014-03-18 18-45-07)
I tried a lot of other combinations but it always returns with yyyy-mm-dd HH-mm-ss

Does anyone know how to change the timeformat to HHmmss with ExifTool in XnView MP?

Thank you,
Marcus
jkm
Posts: 402
Joined: Sat May 11, 2024 12:43 am

Re: Batch rename with ExifTool: problem with timeformat

Post by jkm »

Welcome to the forums, Marcus.

Hmm... I don't think exiftool values work with the date time variables yet.

Generally, the dates in the EXIF (Create Date, Date/Time Original, Modify Date, Date Digitized, Date Taken) should be the same, straight from the camera, unless some other software has modified them (as might happen in your raw developer for example).

Have you tried using one of the other built-in EXIF dates that take the modifiers, like {EXIF:Date}, {EXIF:Date Digitized}, or {EXIF:Date Taken} ?

If that doesn't work, you could post an unmodified example file that you're having the issue where you think you need ExifTool:CreateDate; that might shed some light on it.
Marcusb123
Posts: 2
Joined: Thu Feb 12, 2026 10:02 am

Re: Batch rename with ExifTool: problem with timeformat

Post by Marcusb123 »

Thank you jkm,

I had missed the command {EXIF:Date taken[Y-m-d_HMS]}
This works very well, thank you!

Marcus
jkm
Posts: 402
Joined: Sat May 11, 2024 12:43 am

Re: Batch rename with ExifTool: problem with timeformat

Post by jkm »

Marcusb123 wrote: Sat Feb 14, 2026 8:12 am Thank you jkm,

I had missed the command {EXIF:Date taken[Y-m-d_HMS]}
This works very well, thank you!

Marcus
You're very welcome. Glad you're sorted out.