ITeye博客

判断某一日期是星期几。

沉睡的鱼 · 2012-04-11 15:40 · java常识 · 编程语言 · Markdown

public static String getStringDayOfWeek(Date date) {
String result = "";
if (null != date) {
SimpleDateFormat formatter4 = new SimpleDateFormat("E");
result = formatter4.format(date);
}
return result;
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。