Comparing two dates using Joda time

后端 未结 9 1119
春和景丽
春和景丽 2020-12-14 14:47

I want to compare two dates, however I\'m running into trouble. 1 date is created from a java.util.date object and the other is manually crafted. The following

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-14 15:51

    Write your own method

    public boolean checkEqual(DateTime first,DateTime second){
         if(first. == second. && first. == second. && first. == second.){
             return true;
      }
     return false;
    }
    

提交回复
热议问题