# Fix files creation date in macOS

> Learn how to fix the creation date of files in macOS using the SetFile -d command, handy for GoPro videos or photos that ended up with the wrong date.

Author: Flavio Copes | Published: 2025-02-06 | Canonical: https://flaviocopes.com/fix-files-creation-date-in-macos/

I took some videos with a GoPro that didn’t have date/time set correctly, so all videos were dated 2016 or so.

I went into the folder that had those videos and used the command 

```text
SetFile -d '01/25/2025' *
```

to update all files to the correct date.

This won’t affect the time.

If you also want to set the time, use this format:

```text
SetFile -d '01/25/2025 12:00:00' *
```
