Difference in days between two dates in Java?

后端 未结 19 1730
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 08:26

I need to find the number of days between two dates: one is from a report and one is the current date. My snippet:

  int age=calculateDiffer         


        
19条回答
  •  既然无缘
    2020-11-22 08:56

    Look at the getFragmentInDays methods in this apache commons-lang class DateUtils.

提交回复
热议问题