This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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
 
wood burning stoves
 
subject: how to substract time and date