AnsweredAssumed Answered

I need help to get a solution for the following problem that i am having

Question asked by deepak.agrawal on May 19, 2014
Latest reply on Dec 18, 2016 by 69881137

     I need to get result after subtracting two dates.

     1. CreatedDateTime = 10/02/2013 14:40 --> This is available from the data xml.

     2. I then need to get the current date and subtract 1 year to get a tresholdDateTime. Eg. Current Date=05/19/2014 14:50,  tresholdDateTime = 05/19/2013 14:50

     3. If CreatedDateTime > tresholdDateTime then return "true" Else return "false". 

     Please help me with a groovy/javascript whichever is easy and fast!