@Test public void testGetWeekStr() throws Exception { }
public static String getWeekStr(String sdate) { String str = ""; str = DateHelper.getWeek(sdate); if ("1".equals(str)) { str = "星期日"; } else if ("2".equals(str)) { str = "星期一"; } else if ("3".equals(str)) { str = "星期二"; } else if ("4".equals(str)) { str = "星期三"; } else if ("5".equals(str)) { str = "星期四"; } else if ("6".equals(str)) { str = "星期五"; } else if ("7".equals(str)) { str = "星期六"; } return str; }
DateHelper { public static String getWeekStr(String sdate) { String str = ""; str = DateHelper.getWeek(sdate); if ("1".equals(str)) { str = "星期日"; } else if ("2".equals(str)) { str = "星期一"; } else if ("3".equals(str)) { str = "星期二"; } else if ("4".equals(str)) { str = "星期三"; } else if ("5".equals(str)) { str = "星期四"; } else if ("6".equals(str)) { str = "星期五"; } else if ("7".equals(str)) { str = "星期六"; } return str; } }
DateHelper { public static String getWeekStr(String sdate) { String str = ""; str = DateHelper.getWeek(sdate); if ("1".equals(str)) { str = "星期日"; } else if ("2".equals(str)) { str = "星期一"; } else if ("3".equals(str)) { str = "星期二"; } else if ("4".equals(str)) { str = "星期三"; } else if ("5".equals(str)) { str = "星期四"; } else if ("6".equals(str)) { str = "星期五"; } else if ("7".equals(str)) { str = "星期六"; } return str; }  }
DateHelper { public static String getWeekStr(String sdate) { String str = ""; str = DateHelper.getWeek(sdate); if ("1".equals(str)) { str = "星期日"; } else if ("2".equals(str)) { str = "星期一"; } else if ("3".equals(str)) { str = "星期二"; } else if ("4".equals(str)) { str = "星期三"; } else if ("5".equals(str)) { str = "星期四"; } else if ("6".equals(str)) { str = "星期五"; } else if ("7".equals(str)) { str = "星期六"; } 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 getWeekStr(String sdate) { String str = ""; str = DateHelper.getWeek(sdate); if ("1".equals(str)) { str = "星期日"; } else if ("2".equals(str)) { str = "星期一"; } else if ("3".equals(str)) { str = "星期二"; } else if ("4".equals(str)) { str = "星期三"; } else if ("5".equals(str)) { str = "星期四"; } else if ("6".equals(str)) { str = "星期五"; } else if ("7".equals(str)) { str = "星期六"; } 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; }