I need to return a number in column AH depending on the date in column H.

For example, the date displayed is in the format "20120401" YYYYMMDD. I need column AH to show "01" for the month of April, 02 for May, etc...