in reply to Re: How to get last month date periodin thread How to get last month date period
As for leap years, the rule is:
This will break in January.
You're right. To fix, just add:
$curr_year-- if $curr_month eq "Jan"; [download]