- public static String getWeek(String sdate) {
-
- Date date = VeDate.strToDate(sdate);
- Calendar c = Calendar.getInstance();
- c.setTime(date);
-
-
-
- return new SimpleDateFormat("EEEE").format(c.getTime());
- }
- public static String getWeekStr(String sdate){
- String str = "";
- str = VeDate.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;
- }
posted @
2015-03-05 15:35
清澈见底
阅读(
179)
评论()
编辑
收藏
举报