Add or subtract days from variable in date timer definition

Hi Matt.

You can do it in a one-liner:

#{ dateTime().withMillis( someJavaUtilDate.getTime() ).minusDays(2).toDate() }

But I agree that this is a bit ugly and hard to figure out. Maybe you want to create an issue for that to introduce a new function like

dateTime( someJavaUtilDate )

Cheers
Bernd

2 Likes