Skip to content

Instantly share code, notes, and snippets.

@fahadsiddiqui
Created April 19, 2017 08:58
Show Gist options
  • Save fahadsiddiqui/ffa938eab66ced491de3015ca0fa953b to your computer and use it in GitHub Desktop.
Save fahadsiddiqui/ffa938eab66ced491de3015ca0fa953b to your computer and use it in GitHub Desktop.
// 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