Change date without affecting the time

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

reddwarf4ever
Posts: 20
Joined: Sun Aug 21, 2022 11:34 pm

Change date without affecting the time

Post by reddwarf4ever »

Allow the option to keep the original time when changing the date
Thanks
Franky
Posts: 246
Joined: Fri Mar 06, 2020 1:28 pm
Location: France - BZH

Re: Change date without affecting the time

Post by Franky »

You can change the date without changing the time.
Just add +/- the number of days.
reddwarf4ever
Posts: 20
Joined: Sun Aug 21, 2022 11:34 pm

Re: Change date without affecting the time

Post 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.....
User avatar
michel038
XnThusiast
Posts: 1305
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Change date without affecting the time

Post 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 ...
Last edited by michel038 on Tue Feb 06, 2024 10:49 pm, edited 1 time in total.
Franky
Posts: 246
Joined: Fri Mar 06, 2020 1:28 pm
Location: France - BZH

Re: Change date without affecting the time

Post 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
You do not have the required permissions to view the files attached to this post.
reddwarf4ever
Posts: 20
Joined: Sun Aug 21, 2022 11:34 pm

Re: Change date without affecting the time

Post 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
Last edited by reddwarf4ever on Thu Feb 08, 2024 11:51 am, edited 1 time in total.
User avatar
michel038
XnThusiast
Posts: 1305
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Change date without affecting the time

Post 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 ...
reddwarf4ever
Posts: 20
Joined: Sun Aug 21, 2022 11:34 pm

Re: Change date without affecting the time

Post by reddwarf4ever »

Thanks
reddwarf4ever
Posts: 20
Joined: Sun Aug 21, 2022 11:34 pm

Re: Change date without affecting the time

Post 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
Franky
Posts: 246
Joined: Fri Mar 06, 2020 1:28 pm
Location: France - BZH

Re: Change date without affecting the time

Post by Franky »

Look at the result on my screenshot, the hours don't change.
reddwarf4ever
Posts: 20
Joined: Sun Aug 21, 2022 11:34 pm

Re: Change date without affecting the time

Post by reddwarf4ever »

I want to use a custom date, not an Exif date
Think that's the issue
Franky
Posts: 246
Joined: Fri Mar 06, 2020 1:28 pm
Location: France - BZH

Re: Change date without affecting the time

Post by Franky »

In the Drop-Down Menu, you can choose which date is to be modified.
User avatar
michel038
XnThusiast
Posts: 1305
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Change date without affecting the time

Post 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, ... ?