Seven days past date from current date

hi all..

i want 2 know how 2 find 7days past date from current date..
when i used set datetime = `date '+%m%d%y'` i got 060613..

i just want to know hw to get 053013..

i tried using date functions but couldnt get it :frowning: i use c shell and there is no chance that i can change that .. please advice

$ date -d "7 days ago" '+%m%d%y'
053013

If the -d flag and commands are not recognised by your OS, search the boards for date calculations. There have been several threads recently on this sort of thing.

Robin

Since this type of question is frequently asked, so we have a thread in FAQ section.