0
5.7kviews
Write a program to find the current date and time using JSP..

Mumbai University > information technology > sem 4> Web Programming

Marks: 5M

Year : Dec16

1 Answer
0
774views

Getting Current Date & Time

This is very easy to get current date and time in JSP program. You can use a simple Date object with toString() method to print current date and time as follows:

<%@ page import="java.io.*,java.util.*, javax.servlet.*" %>
<html>
<head>
<title>Display Current Date & Time</title>
</head>
<body> …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.