File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to substract time and date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "how to substract time and date" Watch "how to substract time and date" New topic
Author

how to substract time and date

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
How can I substract time and date so as to get output in int.
The example is metioned below. I need output in "int" in format mentioned below.
for example
int time=(20:30:00-02:45:00)

int date=(2001-12-7)-(2000-4-6)
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
I am moving this thread to the Java Beginner Forum.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
GeeCON Prague 2014
 
subject: how to substract time and date