How to trim minutes and hours and seconds from Date object?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-05-05T17:29:05Z Indexed on 2010/05/05 17:38 UTC
Read the original article Hit count: 190

Filed under:
|
|

I need to make map where Dates are keys. 2 date objects are equals if they have the same value of getTime() method.

I'm interested only in year, month and day. How can I trim unnecessary hours and minutes to get 'clear' dates?

© Stack Overflow or respective owner

Related posts about java

Related posts about date