public CheckResultMessage checkDayofMonth() {

		// clear message list
		messageList.clear();

		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMM");

		try {
			Date date = dateFormat.parse(monthDate);
			Calendar cal = Calendar.getInstance();
			cal.setTime(date);

			maxDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
			cal.add(Calendar.MONTH, -1);
			lastMaxDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH);

		} catch (ParseException e) {
			e.printStackTrace();
			return error(fileName + " 期数格式不正确！应为yyyyMM");
		}
		if (checkVersion(file).equals("2003")) {
			if (fileNameSections.length == 4) {
				int r1 = get(2, 2);
				int c1 = get(3, 2);
				if (!(getValueString(r1 + 1, c1 - 1, 0).equals(lastMaxDay + "日"))) {
					return error("日期设置错误！<" + fileName + ">" + " Sheet：1-1"
							+ ", 应设为上月最后日期：" + lastMaxDay + "日");
				}
			}
		} else {
			if (fileNameSections.length == 4) {
				int r1 = get(2, 2);
				int c1 = get(3, 2);
				if (!(getValueString1(r1 + 1, c1 - 1, 0).equals(lastMaxDay + "日"))) {
					return error("日期设置错误！<" + fileName + ">" + " Sheet：1-1"
							+ ", 应设为上月最后日期：" + lastMaxDay + "日");
				}
			}
		}
		// 遍历检查
		// for (String sheetName : sheetNames) {
		//
		// XSSFSheet sheet = workbook.getSheet(sheetName);
		// if (sheet == null) {
		// continue;
		// }
		//
		// DayCell days = daysMap.get(sheetName);
		// if (days == null) {
		// System.err.println("缺少days定义，sheetName=" + sheetName);
		// continue;
		// }
		// XSSFRow row = sheet.getRow(days.getStartCol());
		// XSSFCell cell = row.getCell(days.getStartRow());
		// if ( ! (lastMaxDay + "日").equals(cell.getStringCellValue().trim())) {
		// messageList.add(error("日期设置错误！<" + fileName + ">"
		// + " Sheet：" + sheetName
		// // + ", 单元格" +
		// CellReferenceHelper.getCellReference(days.getStartCol(),
		// days.getStartRow())
		// + "设置为" + cell.getStringCellValue()
		// + ", 应设为上月最后日期：" + lastMaxDay + "日"));
		// }
		//
		// for (int i = 1; i <= maxDay; i++) {
		// XSSFComment cell1 = null;
		//
		// if (days.getDirection() == DayCell.COL_DIRECTION) {
		// cell1 = sheet.getCellComment(days.getStartCol(), days.getStartRow() +
		// i);
		// } else if (days.getDirection() == DayCell.ROW_DIRECTION) {
		// cell1 = sheet.getCellComment(days.getStartCol() + i,
		// days.getStartRow());
		// }
		//
		// if ( ! (i + "日").equals(( cell1.getString()))) {
		// messageList.add(error("日期设置错误！<" + fileName + ">"
		// + " Sheet：" + sheetName
		// + ", 单元格" + CellReferenceHelper.getCellReference(cell.getColumn(),
		// cell.getRow())
		// + "设置为" + cell1.getContents()
		// + ", 应设为日期：" + i + "日"));
		// }
		// }
		//
		// }

		if (messageList.size() > 0) {
			return null;
		}

		return pass(reportName + " <" + fileName + "> 日期设置校验正确");
	}