This is fairly straightforward as long as you're not concerned with days of the month. Just roll your own code.
# set numeric values my $month = my $year = my $monthsback = # subtract from current month $month -= $monthsback; # convert to proper range of values if($month <= 0){$year--} $year += int($month/12); $month = $month%12; if ($month == 0){$month = 12}
Well, maybe a little more straightforward if you were looking for future months. If you need to take days of the month into account, you would have to figure out how you want to deal with such thinge as Feb 31st.
In reply to Re: Month Dates
by hangon
in thread Month Dates
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |