Created
February 27, 2012 10:55
-
-
Save kdabir/1923072 to your computer and use it in GitHub Desktop.
Date Diff in groovy
This file contains hidden or 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
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