This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Date Comparisons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date Comparisons" Watch "Date Comparisons" New topic

Date Comparisons

Krish Yeruva
Ranch Hand

Joined: Sep 17, 2008
Posts: 58
I want to compare two dates like greaterthanorequalto and lessthanorequalto?
We can do greaterthan or lessthan by using before() or after() methods.
But I want to compare like greaterthanorequalto and lessthanorequalto?
Can anyone suggest me how I can do that Please?

Thanks In Advance

Thanks & Regards
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

or maybe

Do these give you any ideas?

Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
It is sorta covered in the JavaRanch Style Guide.
subject: Date Comparisons
It's not a secret anymore!