Hi, Convert dates into miliseconds with function getTime() and substract these two numbers and you will get difference in miliseconds from which you can then calculate diffrence in days, hours etc. Hope it helped, Gordana. -----Urspr�ngliche Nachricht----- Von: Lorena Carlo [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 16. Mai 2001 01:46 An: [EMAIL PROTECTED] Betreff: How can I substract two dates? Hey all, Can anybody tell me how can I substract to dates I 've already try using variables of the class: java.sql.Time, and I try to use ( - ) for substracting, but i didn't work, please help me the sooner you can. Thanks in advance, Lorena Carlo =========================================================================== 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://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets =========================================================================== 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://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
