You will need to import and use java.util.Calendar java.util.GregorianCalendar
I think the GregorianCalendar is much more useful. If you look up the API javadocs you will get a very nice example to start off with. With regards Rajesh Thiharie Aithent, New Delhi, India 91 124 6455511 x 109 Work > I have to check two dates(TimeStamps) ,based on hours I will display the results. > How can I check two timestamps > Results I want in terms of hours... =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com