How to display date in JSP?

How to display date in JSP?

How to create a simple JSP program which displays date on the page?

Thanks

View Answers

May 10, 2017 at 11:27 PM

Hi,

You should import the java.util package:

<%@page contentType="text/html" import="java.util.*" %>

Then use the following code to print the current date:

<%= new java.util.Date() %>

Check complete tutorial at How to Create JSP Page?

Thanks

Ads









Related Tutorials/Questions & Answers:
How to display date in JSP?
How to display date in JSP?
Advertisements
How to display current date in textbox - Date Calendar
JSP1
JSP2
how to display(update) current date and month in select box on selecting the year.
how to create own tld and use it in jspx file
how to create own tld and use it in jspx file
ModuleNotFoundError: No module named 'jspp'
ModuleNotFoundError: No module named 'JSPy'
Only Display Date
SQL display date in between query
how can i display the dates of one week by selecting the date randomly from the calendar?
display date to jsp from database
how to write jsps and databasetables,umldiagrams in fuelmanagement system project
how to display?
how to display?
how to display?
Display Date and Time - Design concepts & design patterns
how to display?
Display PHP clock with user input date and time
How to display the current time
how to display image with listview
How to use Date Picker iPhone
How to compare date in Java?
How to Convert String to Date?
PHP Display date and time
How to display string or character
how to add date and change date in java - netbeans
HOW TO DISPLAY TABLEEEE
Mysql Date Format codes
Write an Applet which display current date and time on the web page??
Write an Applet which display current date and time on the web page??
How to display a file for 24 hours?
Date Tool Example
how to display multiple images on browser
how to display multiple images on browser
versions of servlets and JSPs?
How to display windows virtual keyboard
how to display response in request page
How to display transfer speed with rsync?
how to display records from database
How to get the current date in Java?
How to calculate Date Difference in Java?
How to get max date in Hibernate?
how to display data in excel sheet?
How to convert date to string in Java?
How to retrieve the ISO Date in PHP?
How to display multiple images in jsp
How to convert date to time in PHP?

Ads