aspose file tools*
The moose likes Java in General and the fly likes Comparision of Time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Comparision of Time" Watch "Comparision of Time" New topic
Author

Comparision of Time

jaya repaka
Greenhorn

Joined: Nov 06, 2003
Posts: 18
Hi All,
I have one date field.I am getting the time(hh:mm a) as
example: 10.30 PM I wanted to compare this time with hard coded value(8.30PM)
Is there way to compare two time(if(this time> hardcoded time)- 10.30PM > 8.30PM)..If there is a way please le me know..


Thanks in advance

Regards
lakshmi
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I read this:

as
and throw a QuestionNotUnderstoodException.


http://home.arcor.de/hirnstrom/bewerbung
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42286
    
  64
If you have the dates as java.util.Date or java.util.Calendar objects, you can use the before() and after() methods.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: Comparision of Time