File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


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

Date

Mag Yeoh
Ranch Hand

Joined: Oct 08, 2006
Posts: 40
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/06....how 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
Mag
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10202
    
166

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
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Date