Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Previous Date.... 1

Status
Not open for further replies.

nithin97

Programmer
Oct 23, 2002
25
US
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 ?
 
Hi nithin97,

check out this: thread822-262781

It gives you exactly what you need!

mrjazz [pc2]
 
THanks MrJazz... i got it what i exactly needed.. thank you very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top