declaring a startdate & endate using joda time?
This question already has an answer here:
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
