java 获得当前时间 年月日时分秒 星期几
<%
SimpleDateFormat df = new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");//设置日期格式
SimpleDateFormat weekFM = new SimpleDateFormat("EEEE");//星期几
//new Date()为获取当前系统时间
out.print("现在是"+df.format(new Date()) +" "+weekFM.format(new Date()));
%>