Skip to content

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

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:

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

I wrote 21 books to help you become a better developer:

  • HTML Handbook
  • Next.js Pages Router Handbook
  • Alpine.js Handbook
  • HTMX Handbook
  • TypeScript Handbook
  • React Handbook
  • SQL Handbook
  • Git Cheat Sheet
  • Laravel Handbook
  • Express Handbook
  • Swift Handbook
  • Go Handbook
  • PHP Handbook
  • Python Handbook
  • Linux Commands Handbook
  • C Handbook
  • JavaScript Handbook
  • Svelte Handbook
  • CSS Handbook
  • Node.js Handbook
  • Vue Handbook
...download them all now!

Related posts that talk about mac: