SyntaxFix
Write A Post
Hire A Developer
Questions
date under Mac OSX is slightly different.
For yesterday
date -v-1d +%F
For Last week
date -v-1w +%F