This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 39576
    
  27
If you have the dates as java.util.Date or java.util.Calendar objects, you can use the before() and after() methods.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Comparision of Time
 
Similar Threads
Tax structure in Singapore
Small problem while iterating over Collection with logic:iterate...
A lot of 503's lately?
Rendered attribute and Expression Language
concurrent bubble sort