The current time on the server is:
Notice, only the time part changes but the entire page is not reloaded.
<% String format = request.getParameter("dateformat"); out.print(new java.text.SimpleDateFormat(format) .format(new java.util.Date())); %>