File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date" Watch "Date" New topic


Mag Yeoh
Ranch Hand

Joined: Oct 08, 2006
Posts: 42
hi...i have a problem for the date....i have 2 listbox that is display all the date.....i can choose the date between....for example i want to display the data from 22/11/06 to 30/11/ the calender or date method can use to compare this two date....because i only want the date from 22 to 20....

can i use the calender or date method to do the comparison between

have any example for me...Thanks..

Warmest regards
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

How about the

boolean after(Date when)
Tests if this date is after the specified date.
boolean before(Date when)
Tests if this date is before the specified date.

APIs on the Date class

[My Blog] [JavaRanch Journal]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Please take the time to choose better subjects for your posts. "Date" is not informative. Also please take the time to post in the appropriate forum. Dates are not part of JSP so this is more approriate in the Java beginner's forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Date
It's not a secret anymore!