Unable to add date to current date.

view full story

http://www.unix.com – Hi, I am trying to display future date from the current date but unable to do so in UNIX (not in PERL). For eg: if today is March 5 then I want a variable wherein I can store Mar 7 date, but unable to get the future date from the current date. I have tried many possible ways as mentioned below but all in vain. Kindly help me out as soon as possible echo `date "+%b%e" -d "+3 days"` echo `date "+%b%e" -d "+3 days in future"` echo `date --date="-1 days" +%Y%m%d` (HowTos)