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









Related Tutorials/Questions & Answers:
How to display date in JSP?
How to display date in JSP?
Advertisements
JSP1
JSP2
How to display current date in textbox - Date Calendar
ModuleNotFoundError: No module named 'jspp'
ModuleNotFoundError: No module named 'JSPy'
how to create own tld and use it in jspx file
how to create own tld and use it in jspx file
how to display(update) current date and month in select box on selecting the year.
Display Date - Java Beginners
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?
how to write jsps and databasetables,umldiagrams in fuelmanagement system project
display date to jsp from database
Display Date and Time - Design concepts & design patterns
how to display?
how to display?
how to display?
Display PHP clock with user input date and time
Display current date in text box in JSP using javascript
how to display?
Protect JSPs from direct access
Display Current Date using JSP Custom(user define) Tag
PHP Display date and time
How to display the current time
how to display image with listview
How to display string or character
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 TABLEEEE
versions of servlets and JSPs?
how to add date and change date in java - netbeans
How to compare date in Java?
How to use Date Picker iPhone
Date Tool Example
how to get current date without system date
How to Convert String to Date?
How to display a file for 24 hours?
how to display multiple images on browser
how to display multiple images on browser
Mysql Date Format codes
how to display the email message in jsp
How to display windows virtual keyboard
how to display response in request page
How to display transfer speed with rsync?
how to display pdf file on browser
how to display records from database
how to display the image in center - Ajax

Ads