in reply to Re: get previous month in two digit numberin thread get previous month in two digit number
Just do
( $present_month - 1 || 12 ) [download]
to implement rollover from January into December.