Just do
( $present_month - 1 || 12 )
to implement rollover from January into December.
In reply to Re^2: get previous month in two digit number
by hdb
in thread get previous month in two digit number
by Jim Wang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |