Apple launches Apple Store app in India

The Apple Store app provides customers with the most personalized way to shop for Apple’s innovative lineup of products and services. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

How do I change a file creation date?

I have image files that were created on a device that had the wrong date set. It created a whole set of images in 2024 that are labeled as being created in 2025. This is now a problem, tracking these files.


How can I just change the date of those files to show a year of 2024?


I think I bumbled onto something last year, but did not change them all and now I can't remember how to change the date.

MacBook Pro 13″, macOS 14.5

Posted on Jan 18, 2025 3:31 PM

Reply
2 replies

Jan 18, 2025 3:41 PM in response to raidl

With Xcode (or the command-line tools) installed:

xcode-select --install


The following will set the creation date:

SetFile -d "01/01/2025 00:00:00" /path/to/a/file /path/to/another/file


Details on SetFile are available.


For the more important metadata embedded within images (using file system metadata here is best avoided):


https://exiftool.org/

How do I change a file creation date?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.