Skip to content

Instantly share code, notes, and snippets.

@kdabir
Created February 27, 2012 10:55
Show Gist options
  • Save kdabir/1923072 to your computer and use it in GitHub Desktop.
Save kdabir/1923072 to your computer and use it in GitHub Desktop.
Date Diff in groovy
​def today = new Date()
def three_days_old = today - 3
println three_days_old
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment