Friday, 16 November 2012

Display Date and Time Using JSP


JSP Program to display current date and time

<HTML>
    <HEAD>
        <TITLE>
            Date
        </TITLE>
        <%@page import="java.util.*;" %>
    </HEAD>
    <BODY>
        <P>
        <h1><CENTER>Welcome..</BR>
            Todays Date is
        </br>
        <%=new Date()%>
        </h1>
        </P>
    </BODY>
</HTML>

output: 

Date and Time using JSP
Date and Time using JSP

 


No comments:

Post a Comment