ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Haytham on March 09, 2021, 12:16:40 PM

Title: How to change TIME ONLY and keep the date (YYYYMMDD) value as is?
Post by: Haytham on March 09, 2021, 12:16:40 PM
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
Title: Re: How to change TIME ONLY and keep the date (YYYYMMDD) value as is?
Post by: Luuk2005 on March 09, 2021, 01:20:10 PM
Greetings Haythem, maybe to use something like...    -DateTimeOriginal"<${DateTimeOriginal;s/ .*/ 000000/}"
Its just replacing "Date Time" with "Date 000000"
Title: Re: How to change TIME ONLY and keep the date (YYYYMMDD) value as is?
Post by: Haytham on March 09, 2021, 02:42:00 PM
Thanks Luuk2005, it worked perfectly.