Date date=new Date();
SimpleDateFormat dateFm = new SimpleDateFormat("EEEE");
String res = dateFm.format(date);
System.out.println(res);
Date date=new Date();
SimpleDateFormat dateFm = new SimpleDateFormat("EEEE");
String res = dateFm.format(date);
System.out.println(res);
本文标题:获取当天是星期几
本文链接:https://www.haomeiwen.com/subject/ozwrnxtx.html
网友评论