Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compare dates for equality but ignore time

843785Dec 1 2008 — edited Dec 1 2008
I have 2 Calendar objects and I want to compare them by dates only. I don't care about time.

The equal() and compareto() methods take time into consideration which is not what I want.

I want to see if one date is equal to the other or not. That's all

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2008
Added on Dec 1 2008
4 comments
357 views