The dateTime placeholder forwards all method calls to Joda DateTime API. Please refer to the original documentation for more information about implementation details.

Below you can find some of the most common implementation examples.

Methods

NameTypeDescription

dateTime

org.joda.time.DateTime

The current DateTime. See Joda DateTime API for more information. The current user locale can be obtained using $user.locale for the purpose of dateTime formatting.

dateTime.getYear()StringReturns the year field value.
dateTime.getMonthOfYear()StringReturns the month field value.
dateTime.getDayOfMonth()StringReturns the day field value.