@Test public void testGetEndDateOfMonth() throws Exception { }
public static String getEndDateOfMonth(String dat) { String str = dat.substring(0, 8); String month = dat.substring(5, 7); int mon = Integer.parseInt(month); if (mon == 1 || mon == 3 || mon == 5 || mon == 7 || mon == 8 || mon == 10 || mon == 12) { str += "31"; } else if (mon == 4 || mon == 6 || mon == 9 || mon == 11) { str += "30"; } else { if (isLeapYear(dat)) { str += "29"; } else { str += "28"; } } return str; }
DateHelper { public static String getEndDateOfMonth(String dat) { String str = dat.substring(0, 8); String month = dat.substring(5, 7); int mon = Integer.parseInt(month); if (mon == 1 || mon == 3 || mon == 5 || mon == 7 || mon == 8 || mon == 10 || mon == 12) { str += "31"; } else if (mon == 4 || mon == 6 || mon == 9 || mon == 11) { str += "30"; } else { if (isLeapYear(dat)) { str += "29"; } else { str += "28"; } } return str; } }
DateHelper { public static String getEndDateOfMonth(String dat) { String str = dat.substring(0, 8); String month = dat.substring(5, 7); int mon = Integer.parseInt(month); if (mon == 1 || mon == 3 || mon == 5 || mon == 7 || mon == 8 || mon == 10 || mon == 12) { str += "31"; } else if (mon == 4 || mon == 6 || mon == 9 || mon == 11) { str += "30"; } else { if (isLeapYear(dat)) { str += "29"; } else { str += "28"; } } return str; }  }
DateHelper { public static String getEndDateOfMonth(String dat) { String str = dat.substring(0, 8); String month = dat.substring(5, 7); int mon = Integer.parseInt(month); if (mon == 1 || mon == 3 || mon == 5 || mon == 7 || mon == 8 || mon == 10 || mon == 12) { str += "31"; } else if (mon == 4 || mon == 6 || mon == 9 || mon == 11) { str += "30"; } else { if (isLeapYear(dat)) { str += "29"; } else { str += "28"; } } return str; }  static int diffOfDay(Date date1, Date date2); static Date getNowDate(); static Date phpDateToJavaDate(int timeStamp); static Date getNowDateShort(); static String getStringDate(); static String getStringDateShort(); static String getTimeShort(); static Date strToDateLong(String strDate); static Date strToDate(String strDate, String dateFormat); static Date strToDate(String strDate, DateFormat dateFormat); static String dateToStr(Date date, String format); static String dateToStr(Date date, DateFormat dateFormat); static String dateToStrLong(Date dateDate); static String dateToStr(Date dateDate); static Date strToDate(String strDate); static Date getNow(); static Date getLastDate(long day); static String getStringToday(); static String getHour(); static String getTime(); static String getUserDate(String sformat); static String getTwoHour(String st1, String st2); static String getTwoDay(String sj1, String sj2); static String getPreTime(String sj1, String jj); static Date getNextDay(Date nowDate, int delay); static String getNextDay(String nowDate, int delay); static boolean isLeapYear(String ddate); static String getEDate(String str); static String getEndDateOfMonth(String dat); static boolean isSameWeekDates(Date date1, Date date2); static String getSeqWeek(); static String getWeek(String sdate, String num); static String getWeek(String sdate); static String getWeekStr(String sdate); static long getDays(String date1, String date2); static String getNowMonth(String sdate); static String getNo(int k); static String getRandom(int i); static boolean rightDate(String date); static Date getDay(Date date); static void main(String[] args); }
DateHelper { public static String getEndDateOfMonth(String dat) { String str = dat.substring(0, 8); String month = dat.substring(5, 7); int mon = Integer.parseInt(month); if (mon == 1 || mon == 3 || mon == 5 || mon == 7 || mon == 8 || mon == 10 || mon == 12) { str += "31"; } else if (mon == 4 || mon == 6 || mon == 9 || mon == 11) { str += "30"; } else { if (isLeapYear(dat)) { str += "29"; } else { str += "28"; } } return str; }  static int diffOfDay(Date date1, Date date2); static Date getNowDate(); static Date phpDateToJavaDate(int timeStamp); static Date getNowDateShort(); static String getStringDate(); static String getStringDateShort(); static String getTimeShort(); static Date strToDateLong(String strDate); static Date strToDate(String strDate, String dateFormat); static Date strToDate(String strDate, DateFormat dateFormat); static String dateToStr(Date date, String format); static String dateToStr(Date date, DateFormat dateFormat); static String dateToStrLong(Date dateDate); static String dateToStr(Date dateDate); static Date strToDate(String strDate); static Date getNow(); static Date getLastDate(long day); static String getStringToday(); static String getHour(); static String getTime(); static String getUserDate(String sformat); static String getTwoHour(String st1, String st2); static String getTwoDay(String sj1, String sj2); static String getPreTime(String sj1, String jj); static Date getNextDay(Date nowDate, int delay); static String getNextDay(String nowDate, int delay); static boolean isLeapYear(String ddate); static String getEDate(String str); static String getEndDateOfMonth(String dat); static boolean isSameWeekDates(Date date1, Date date2); static String getSeqWeek(); static String getWeek(String sdate, String num); static String getWeek(String sdate); static String getWeekStr(String sdate); static long getDays(String date1, String date2); static String getNowMonth(String sdate); static String getNo(int k); static String getRandom(int i); static boolean rightDate(String date); static Date getDay(Date date); static void main(String[] args); static final SimpleDateFormat FORMATTER_SHORT; static final SimpleDateFormat FORMATTER_LONG; }