<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%"> </td>
<td width="20%"><strong><%
String[] weekDays = {"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"};
// String[] weekDays = {"1", "2", "3", "5", "5", "5", "9"};
Calendar cal = Calendar.getInstance();
//cal.setTime(dt);
int w = cal.get(Calendar.DAY_OF_WEEK) - 1;
if (w < 0){
w = 0;
}
String weekday= weekDays[w];
String nowdate=new SimpleDateFormat("yyyy年MM月dd日").format(new Date());;
%>
<%=nowdate %> <%=weekday %>
</strong></td>
</tr>
</table>
<tr>
<td width="80%"> </td>
<td width="20%"><strong><%
String[] weekDays = {"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"};
// String[] weekDays = {"1", "2", "3", "5", "5", "5", "9"};
Calendar cal = Calendar.getInstance();
//cal.setTime(dt);
int w = cal.get(Calendar.DAY_OF_WEEK) - 1;
if (w < 0){
w = 0;
}
String weekday= weekDays[w];
String nowdate=new SimpleDateFormat("yyyy年MM月dd日").format(new Date());;
%>
<%=nowdate %> <%=weekday %>
</strong></td>
</tr>
</table>