• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date

 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic