declaring a startdate & endate using joda time?

This question already has an answer here:

  • Number of days between two dates in Joda-Time 6 answers

  • This

    int Days;
    Days.daysBetween(new LocalDate(start),new LocalDate(end)).getDays();
    

    should be something like

    int dayCount = Days.daysBetween(start, end).getDays();
    

    Because start and end are already LocalDate (s) and you want to save the result of the call. Also, you should only need one EasyReader instance. And, you'll need to add

    import org.joda.time.Days;
    
    链接地址: http://www.djcxy.com/p/36662.html

    上一篇: 如何在Android项目中使用ThreeTenABP

    下一篇: 使用joda时间声明startdate&endate?