ProbablyDown
MIS
Hi there,
I need an EASY way to subtract the date by one day. The catch is that I need to watch a few things i.e:
If today was Oct. 1st:
Currently: I have a shell script that checks if $thisday - 1 creates Oct. 0. if 0 subtract one from the month and go to $last-day-of-month (Using a case statement).
What I would LIKE is to actually subtract the date:
Oct. 1 2002 - 1 = Sept. 30 2002
or Jan. 2003 - 1 = Dec. 31 2002
You know what I mean?
Any help would be greatly appreciated!!
Thanks!
-pd
I need an EASY way to subtract the date by one day. The catch is that I need to watch a few things i.e:
If today was Oct. 1st:
Currently: I have a shell script that checks if $thisday - 1 creates Oct. 0. if 0 subtract one from the month and go to $last-day-of-month (Using a case statement).
What I would LIKE is to actually subtract the date:
Oct. 1 2002 - 1 = Sept. 30 2002
or Jan. 2003 - 1 = Dec. 31 2002
You know what I mean?
Any help would be greatly appreciated!!
Thanks!
-pd