setfile command

Just learned about the setfile command on the Mac. I wanted to change the create date on a file:

setfile -d MM/DD/YYYY <filename>

Can also set the modification time:

setfile -m MM/DD/YYYY <filename>

Also takes a timestamp if you want to also update the time. Can either be 12/24 hr. If you use 12 hours you need to also use AM/PM.

Very handy.

Jason E. Kratz @jasonekratz