KenTan85
asked on
Get system time and date in JSP
How to I get system time and date in jsp???
ASKER
DateFormat cannot be resolved to a Type
I am having this error
I am having this error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<%!
DateFormat fmt = new SimpleDateFormat("hh:mm:ss
String currenttime = fmt.format(new Date());
%>
current time is <%= currenttime %>