Calculated Date Field - get current date

Maya_Chase August 16, 2017

Hi, I want to use a Calculated Date Field to get the current date and add 1 day. All the examples I've found use another field as the basis for the calculation, not just the current date. Can someone post how to just get the current date? It will be much appreciated! Thank you!

1 answer

1 vote
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2017

Hi, try this:

import java.sql.Timestamp

def date = new Timestamp(new Date().getTime())

Suggest an answer

Log in or Sign up to answer