How to change TIME ONLY and keep the date (YYYYMMDD) value as is?

Started by Haytham, March 09, 2021, 12:16:40 PM

Previous topic - Next topic

Haytham

Great application, Thanks for the time and efforts that have been put in developing such a powerful tool.

I searched for an answer for my question but was not successful.

I have a batch of scanned images (5,000+ images) that have the DATE value but time is unknown. I want to set the time value to all files as 00:00:00 but to keep the Year Month Day value as is without any modification.

Example:

current DateTimeOriginal is 20010812 06:51:23 PM  and I want to make it  20010812 00:00:00 AM (Changing only the time part)

Your help is much appreciated.

Haytham

Luuk2005

Greetings Haythem, maybe to use something like...    -DateTimeOriginal"<${DateTimeOriginal;s/ .*/ 000000/}"
Its just replacing "Date Time" with "Date 000000"
Windows8.1-64bit,  exiftool-v12.92(standalone),  sed-v4.0.7