code: def day_to_month(timeperiod):
      
      t = datetime.strptime(timeperiod, SYNERGY_DAILY_PATTERN)
      return t.strftime(SYNERGY_MONTHLY_PATTERN)
docs: :param timeperiod: as string in YYYYMMDD00 format
      :return string in YYYYMM0000 format