ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Romeo on June 22, 2020, 12:19:40 AM

Title: How to change only Date without changing Time in DateTimeOriginal tag
Post by: Romeo on June 22, 2020, 12:19:40 AM
Hello!
Need a help in solving some problem!
How to change only Date without changing Time in DateTimeOriginal tag?
Title: Re: How to change only Date without changing Time in DateTimeOriginal tag
Post by: StarGeek on June 22, 2020, 12:38:15 AM
Can you give an example of exactly what you want to do?  Do you want to shift the date by a set time. For example, shift the days ± a few days?  Or set it to a specific date no matter what the current value is?
Title: Re: How to change only Date without changing Time in DateTimeOriginal tag
Post by: Romeo on June 22, 2020, 02:29:16 AM
Thanks for the quick response!

Set it to a specific date no matter what the current value is!

Example:
filename_1.jpg (DateTimeOriginal: 2014:05:08 17:22:11)
filename_2.jpg (DateTimeOriginal: 2008:06:10 10:17:09)
filename_3.jpg (DateTimeOriginal: 2012:03:24 15:05:48)

Need to get this result
filename_1.jpg (DateTimeOriginal: 2014:05:08 17:22:11)
filename_2.jpg (DateTimeOriginal: 2014:05:08 10:17:09)
filename_3.jpg (DateTimeOriginal: 2014:05:08 15:05:48)
Title: Re: How to change only Date without changing Time in DateTimeOriginal tag
Post by: StarGeek on June 22, 2020, 10:35:47 AM
See this post (https://exiftool.org/forum/index.php?topic=5517.msg28216#msg28216). 

That gives examples for three tags.  Just keep the ones you want.
Title: Re: How to change only Date without changing Time in DateTimeOriginal tag
Post by: Romeo on June 24, 2020, 12:43:36 AM
Thank!!! you StarGeek, that's exactly what I needed!