Main Menu

Change time and date

Started by zak57, September 13, 2024, 05:06:23 AM

Previous topic - Next topic

zak57

Hi

my photo camera got reset and all the photos are modified to date 01/01/2000.
So my question is, from a Windows Explorer point of view, how to use "Date Created" and import that into "Date Modified"?

Thank you

greybeard

Do you mean ModifyDate?

There are a number of dates and its worth running something like :
exiftool -Time:All <FileName>which will show you all the timestamps

Assuming you mean ModifyDate then - to see the dates before update:
exiftool -CreateDate -ModifyDate <FileName>Create Date                    : 2024:08:15 13:35:28
Modify Date                    : 2000:01:01 13:35:28

To make the update:
exiftool "-CreateDate>ModifyDate" <FileName>
To check the results:
exiftool -CreateDate -ModifyDate <FileName>Create Date                    : 2024:08:15 13:35:28
Modify Date                    : 2024:08:15 13:35:28

If you want to avoid having exiftool backup the file then use:

exiftool "-CreateDate>ModifyDate" -overwrite_original <FileName>
If you want to update all the jpgs in the current directory then:

exiftool "-CreateDate>ModifyDate" -overwrite_original -ext jpg .
I would recommend backing up all your files before you run any update commands

StarGeek

Quote from: zak57 on September 13, 2024, 05:06:23 AMmy photo camera got reset and all the photos are modified to date 01/01/2000.
So my question is, from a Windows Explorer point of view, how to use "Date Created" and import that into "Date Modified"?

From this phrasing, I'm assuming you mean the "Created" and "Modified" seen when you RightClick->Properties



If so, these tags are the FileCreateDate and FileModifyDate. To copy the FileCreateDate into the FileModifyDate, your command would be
exiftool -fast5 "-FileModifyDate<FileCreateDate" /path/to/files/

Add the -r (-recurse) option to recurse into subdirectories.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).