Page 1 of 1

Change date without affecting the time

Posted: Mon Feb 05, 2024 7:13 pm
by reddwarf4ever
Allow the option to keep the original time when changing the date
Thanks

Re: Change date without affecting the time

Posted: Tue Feb 06, 2024 9:47 pm
by Franky
You can change the date without changing the time.
Just add +/- the number of days.

Re: Change date without affecting the time

Posted: Tue Feb 06, 2024 10:17 pm
by reddwarf4ever
If any date parameter is changed the same time will apply to all files
So your reply is not an Answer guess I wasn't clear
enough
Need an option against year month day and time to leave unchanged.....

Re: Change date without affecting the time

Posted: Tue Feb 06, 2024 10:48 pm
by michel038
Select a few JPG photos
Metadata > Change timestamp menu :
- You can select EXIF:Date taken as source (or another existing date)
- Then add ou substract some days. Leave increment at 0
- Select only the dates you wish to update at the bottom
Use the > or < buttons to display the modified dates for the sequence of photos...

Each photo will be processed with it's own timestamp, with the offset you have set ...

Re: Change date without affecting the time

Posted: Tue Feb 06, 2024 10:49 pm
by Franky
Ok I may not have understood but I try one last thing.
With this option, if you change the date, the time doesn't change.
XNViewMP_Changer date sans heure_.png

Re: Change date without affecting the time

Posted: Wed Feb 07, 2024 12:16 pm
by reddwarf4ever
Need to use a date if my choosing not N exif source, will try the time as you suggest a d see if the times stay unchanged
.be easier to have a ---- option for each date parameter . which would mean leave this parameter t unchanged and leave as the source
.not sure if the Devs interested in adding this as a festure

Re: Change date without affecting the time

Posted: Wed Feb 07, 2024 3:27 pm
by michel038
Need to use a date if my choosing not N exif source
But if you want to keep timestamp unchanged, you need to use an existing field containing this timestamp.
About 10 fields can show a date in a jpg photo, see in Info > Exiftool panel wich one can be used as a source field...
So select this field as a source, and then you can use x days offset


If you dont want to calculate the offset, you can use "Tools > Open with" and add an entry for ExifTool
But it's a bit tricky :mrgreen:
here is a tutorial : viewtopic.php?p=183222#p183222

The parameters you will use for your task looks like :
-k "-DateTimeOriginal<2024:01:15 ${DateTimeOriginal;s/.* //}"
(Double quotes for Windows, single quotes for Linux or Mac OS)

.. where the first -DateTimeOriginal is the target field , and the second ${DateTimeOriginal;s/.* //} is the source field.

Be careful, use a copy of some photos to test the process ...

Re: Change date without affecting the time

Posted: Wed Feb 07, 2024 3:45 pm
by reddwarf4ever
Thanks

Re: Change date without affecting the time

Posted: Thu Feb 08, 2024 11:53 am
by reddwarf4ever
The idea if setting the time to all zeroes and zero offset doesn't work it just changes all times to 00:00:00
Need a way to leave individual date elements unchanged and leave as original
So allow just the month to be changed and leave the other date elements unchanged in multiple files
Thanks

Re: Change date without affecting the time

Posted: Thu Feb 08, 2024 12:00 pm
by Franky
Look at the result on my screenshot, the hours don't change.

Re: Change date without affecting the time

Posted: Thu Feb 08, 2024 12:05 pm
by reddwarf4ever
I want to use a custom date, not an Exif date
Think that's the issue

Re: Change date without affecting the time

Posted: Thu Feb 08, 2024 12:25 pm
by Franky
In the Drop-Down Menu, you can choose which date is to be modified.

Re: Change date without affecting the time

Posted: Thu Feb 08, 2024 1:07 pm
by michel038
reddwarf4ever wrote: Thu Feb 08, 2024 11:53 am Need a way to leave individual date elements unchanged and leave as original
So allow just the month to be changed and leave the other date elements unchanged in multiple files
Thanks
You say "individual date éléments unchanged" ...
So, a date exits in your photo, that contains these elements.
Use this date as a source , to be modified by adding e.g. 61 days to add 2 months....

Which date are you talking about ?
File created date, file modified date, file accessed date, Image date taken, image date digitized, exif modify date , exif date time original, exif create date, thumbnail modify date, iptc created date, iptc released date, ... ?