首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

判断某1日期是星期几

2012-08-30 
判断某一日期是星期几。public static String getStringDayOfWeek(Date date) {String result if (nul

判断某一日期是星期几。
public static String getStringDayOfWeek(Date date) {  
                String result = "";  
                if (null != date) {  
                    SimpleDateFormat formatter4 = new SimpleDateFormat("E");  
                   result = formatter4.format(date);  
              }  
               return result;  
           }  

热点排行