How to trim minutes and hours and seconds from Date object?
- by Roman
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?