The current time on the server is:

Notice, only the time part changes but the entire page is not reloaded.


The following is the JSP behind this HTML page.
<%
String format = request.getParameter("dateformat");
out.print(new java.text.SimpleDateFormat(format)
                  .format(new java.util.Date()));
%>
View source code of this HTML page.