1
我已經編寫了一個獲取系統日期的程序。Java中的系統日期格式
<%@page import="java.util.*,java.text.*"%>
<html>
<body>
<p> </p>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing
="0" width="460" bgcolor="#EEFFCA">
<tr>
<td width="100%"><font size="6" color
="#008000"> Date Example</font></td>
</tr>
<tr>
<td width="100%"><b> Current Date
and time is: <font color="#FF0000">
<%
DateFormat formatter = new SimpleDateFormat("DD-MON-YY");
String date = formatter.format(new java.util.Date());
%>
<%=date%>
</font></b></td>
</tr>
</table>
</center>
</div>
</body>
< /html>
我得到一個錯誤。請讓我知道如何將系統日期轉換爲dd-MMM-YY格式。