Created
April 19, 2017 08:58
-
-
Save fahadsiddiqui/ffa938eab66ced491de3015ca0fa953b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// startDate, endDate are jodatime LocalDate objects | |
val daysCount = Days.daysBetween(startDate, endDate).getDays | |
(0 until daysCount).map(startDate.plusDays).foreach { today => | |
// today is LocalDate | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment