Fixed bug in ExtractMonth.

Fixed off-by-one error. It was comparing a base-zero day count with a base-one day count.