Skip to content

Instantly share code, notes, and snippets.

@iskigow
Created October 18, 2016 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iskigow/74c80c1096b17d3a5083f5bc2fe71553 to your computer and use it in GitHub Desktop.
Save iskigow/74c80c1096b17d3a5083f5bc2fe71553 to your computer and use it in GitHub Desktop.
@Grab(group="joda-time", module="joda-time", version="2.0")
import org.joda.time.LocalDate
def ini = new LocalDate(2012, 3, 1)
def fim = new LocalDate(2012, 3, 5)
for (dia in ini..fim) {
println "${dia.toString('dd-MM-yyyy')}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment