aspose file tools*
The moose likes Servlets and the fly likes Date & time operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Date & time operation" Watch "Date & time operation" New topic
Author

Date & time operation

Mark Leong
Ranch Hand

Joined: Dec 11, 2000
Posts: 60
I have a date and time formatted as follows:-
Date = "2002-02-28"
Time = "14:15:00"
Date is formatted as yyyy-mm-dd and time is hh:mm:ss
How to add/minus X hours from the above date/time?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60078
    
  65

Check out the Calendar and GregorianCalendar classes.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date & time operation
 
Similar Threads
Date & Time
conversion from Date ojbect to Date object
how to change the date format
Date and time componet
I need some light please