Page 1 of 1

Date Math

Posted: 03 Dec 2014 20:26
by murdock01
How does one script date math?
For example I want to move files from last week into a folder. Selecting by modified date and moving is easy. I would like the folder name to be a specific date, something like today's date <date yyyy-mm-dd> minus 7 days. Then I could put that value into the folder name, something like "Files from the week of yyyy-mm-dd".
I have found things to modify a files time, e.g. <datem -7d yyyy-mm-dd>. But I want to base mine on today's date not on some files time.
Sorry if this is so obvious that I somehow missed it.
Thanks in advance, Shawn

Re: Date Math

Posted: 03 Dec 2014 20:32
by admin
Interesting, I wanted to reply:

Code: Select all

echo "<date -7d yyyy-mm-dd>";
but it does not work! I implemented the shifts only for the file dates. Next beta...

Re: Date Math

Posted: 04 Dec 2014 13:28
by murdock01
Just downloaded the latest beta.
Just wanted to say thanks for the update. As always, the best support from any product I use or have experience with.