I haven't read your code (which, BTW, you should put between <readmore></readmore> tags), but it looks to me like you are re-inventing a thoroughly invented wheel. Look at Date::Calc, for example.
the lowliest monk
In reply to Re: adding/subtracting calender dates
by tlm
in thread adding/subtracting calender dates
by Fuism
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |