How to set a certain DateTimeMonth for pictures

Started by werwolf, July 02, 2018, 04:54:46 PM

Previous topic - Next topic

werwolf

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?

StarGeek

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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

werwolf

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.

StarGeek

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 for an example.  If you're using Windows, use double quotes instead of single quotes.

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

werwolf

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