Comparison of times
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, July 2, 2002 06:30 PM

Please tell me if Calendar class allows to programmer to compare to two dates of the same day but at different time. I wanna to know which is earlier. Thanks

Re: Comparison of times

Posted By:   Gautam_Marwaha  
Posted On:   Tuesday, July 2, 2002 11:29 PM

use any of the following java.util.Date methods to compare two dates:


public boolean before(Date when)

public boolean after(Date when)

public int compareTo(Date anotherDate)



this shd work for same day, different time as well.
About | Sitemap | Contact