SyntaxFix
Write A Post
Hire A Developer
Questions
if you have GNU date and i understood you correctly
$ date +%Y:%m:%d -d "yesterday" 2009:11:09
or
$ date +%Y:%m:%d -d "1 day ago" 2009:11:09