Hi,
Can I know how to get the previous date ? Now I'm using like,
currdate=`date +%Y%m%d`
ydate=`expr $currdate - 1`
this was working fine till y'day(10-31-2002) but today e'thing gone wrong 'coz
currdate returned 20021101
and ydate returned 20021100 but actually i needed 20021031....
Can anyone help me out in this please ?
Can I know how to get the previous date ? Now I'm using like,
currdate=`date +%Y%m%d`
ydate=`expr $currdate - 1`
this was working fine till y'day(10-31-2002) but today e'thing gone wrong 'coz
currdate returned 20021101
and ydate returned 20021100 but actually i needed 20021031....
Can anyone help me out in this please ?