ExifTool Forum

ExifTool => Newbies => Topic started by: werwolf on July 02, 2018, 04:54:46 PM

Title: How to set a certain DateTimeMonth for pictures
Post by: werwolf on July 02, 2018, 04:54:46 PM
Hi,
my problem:
I made pictures  of a painting diary, 365 picturesfor each day of the year.
Some some reason the sorting of the pictures are not correct, e.g. 2nd of April has the XMP and EXIF CreateDate last.

I tried 3 ways to change the date:

First I tried to change the XMP:CreateDate
exiftool -XMP:CreateDate="2010:04:02 11:35:00" -overwrite_original C:\file.jpg

Then I Tried to change the ExifFD DateTimeOriginal
exiftool "-Exif:DateTimeOriginal=2009:12:31"  -overwrite_original C:\file.jpg

Last I tried to change all dates, but it did also not work, as some date entries are wrong.
exiftool -AllDates="2010:04:02 11:35:00" -overwrite_original C:\File.jpg


In Total I want to change dates dates for 15x365 pictures so I cannot change them manually..

Any Idea to set a certain date for the Pictures?
What am I doing wrong?
Title: Re: How to set a certain DateTimeMonth for pictures
Post by: StarGeek on July 02, 2018, 06:19:53 PM
Quote from: werwolf on July 02, 2018, 04:54:46 PM
Some some reason the sorting of the pictures are not correct, e.g. 2nd of April has the XMP and EXIF CreateDate last.

What are you using to sort the images.  Not all programs are going to use CreateDate to sort.  DateTimeOriginal is more common but it depends upon the program/website.

QuoteI tried 3 ways to change the date:

Your first and third commands should have changed some time stamps.  What was the response from exiftool?  The second should have responded with an error because it takes a more complex command to change just the date and not the time.
Title: Re: How to set a certain DateTimeMonth for pictures
Post by: werwolf on July 03, 2018, 01:57:13 AM
Quote from: StarGeek on July 02, 2018, 06:19:53 PM
Quote from: werwolf on July 02, 2018, 04:54:46 PM
Some some reason the sorting of the pictures are not correct, e.g. 2nd of April has the XMP and EXIF CreateDate last.

What are you using to sort the images.  Not all programs are going to use CreateDate to sort.  DateTimeOriginal is more common but it depends upon the program/website.
Quote
I want to use it on an ipad. I think  DateTimeOriginal  will be the correct

QuoteYour first and third commands should have changed some time stamps.  What was the response from exiftool?  The second should have responded with an error because it takes a more complex command to change just the date and not the time.
the Response from exiftool was always an error message. I could not find the revelant verbose mode to find the exact info of the error. either too much information or nothing. I don't need to change the time, the date will be good enough.
Title: Re: How to set a certain DateTimeMonth for pictures
Post by: StarGeek on July 03, 2018, 02:05:15 AM
Quote from: werwolf on July 03, 2018, 01:57:13 AM
I want to use it on an ipad. I think  DateTimeOriginal  will be the correct

Unfortunately, I don't have access to an iPad to advise further on which tag might be correct.  DateTimeOriginal is usually a good place to start, but the file system dates, such as FileModifyDate are also a possibility.   

Quote from: werwolf on July 03, 2018, 01:57:13 AMI don't need to change the time, the date will be good enough.

That makes for a more complex command.  See this post (https://exiftool.org/forum/index.php/topic,5517.msg27570.html#msg27570) for an example.  If you're using Windows, use double quotes instead of single quotes.

Title: Re: How to set a certain DateTimeMonth for pictures
Post by: werwolf on August 04, 2018, 05:37:50 PM
hi, sorry for the late follow-up.. but could find the time to try it out.

the command
exiftool -m "-DateTimeOriginal<2009:01:03 ${DateTimeOriginal;s/.* //}" FILENAME  -overwrite_original
worked. I don't really understand the command, but it works  :D

thanks for the support.
only 15.000 Files to go now