code: private function format_m(&$str) {
      if (strstr($str, '%m'))
        $str = str_replace('%m', sprintf('%02d', $this->month), $str);
    }
docs: Numeric representation of a month, with leading zeros
  @param type $str