import org.joda.time.LocalDate
import static org.joda.time.Days.*
date1 = new LocalDate(2008, 3, 10)
date2 = new LocalDate(2008, 3, 12)
assert 2 == daysBetween(date1, date2).days
What's not to like? :o)
import org.joda.time.LocalDate
import static org.joda.time.Days.*
date1 = new LocalDate(2008, 3, 10)
date2 = new LocalDate(2008, 3, 12)
assert 2 == daysBetween(date1, date2).days
No comments:
Post a Comment