I'd like to perform date math in a scripted field. The only two languages available are Painless and Expressions.
Want to calculate the duration between a date field and current date/time.
Here is what I have, it doesn't work and gives a compilation error.
Can someone suggest a workaround for this?