Breadcrumbs

dateTime

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

Name

Type

Description

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()

String

Returns the year field value.

dateTime.getMonthOfYear()

String

Returns the month field value.

dateTime.getDayOfMonth()

String

Returns the day field value.