I have 3000 files which all have different dates in which they were created. For example a file has a date created timestamp of: 1 August 11:05. How can I use the terminal to change the timestamp to 9 hours earlier: i.e. 1 August 2:05?

  • What have you tried so far? – fd0 Aug 13 '19 at 13:28
  • Do you only want to change the date shown for Created? Do you want to leave the Modified and Last Accessed times alone? – user3439894 Aug 16 '19 at 16:11

To do that, you need to open the 'Terminal'

In your Terminal, enter the following command:

touch -t YYYYMMDDhhmm.ss (DON'T press enter yet)

replace YYYYMMDDhhmm.ss by it's respective characters

So for example: touch -t 197512232000.23 (DON'T press enter yet)

Locate the files you want to change their timestamps in Finder

Select all the files you want to modify and drag them into your Terminal and now, press enter

The timestamps are now changed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .