Jsp Code For Current Date And Time - Jsp

How to get current date and time in jsp?

Snippet Code

Rate this page :
  [ 0 votes]

This simple jsp code is used to display the current date and time. The sample code using jsp to display time and date is given below.

<html> <head> <title>JSP code for current date and time </title> </head> <body> <p> The Current date and time = <%=new java.util.Date()%> </p> </body> </html>


Ask Questions

Ask Question