问题:
I would like to have a compareTo method that ignores the time portion of a java.util.Date.我想要一个 compareTo 方法来忽略 java.util.Date 的时间部分。 I guess there are a number of ways to solve this.我想有很多方法可以解决这个问题。 What's the simplest way?最简单的方法是什么?
解决方案:
参考一: https://stackoom.com/question/62YF参考二: How to compare two Dates without the time portion?