Set hour in a variable type Date

@glonico refer this example:

you can use expression like below:

${dateTime().withMillis(sendDate.getTime()).plusHours(4).toDate()}

You can find more date related functions here:

http://joda-time.sourceforge.net/api-release/org/joda/time/DateTime.html

1 Like