Made month number more robust

Was having issue with months not being parsed from schedulerHeader
correctly due to additional items in the array. Added additional checks
to make sure the beginning date is parsed correctly