Skip to content

getDate(mixed date)

The getDate method is used to get a Date object that represents given date.

Input parameters

date

mixed Numeric timestamp of a given date or iso8601 date string.

Returned value

The Date object.

Example

source
{% set date = ObjectApi.getDate("2022-06-13") %}
{{ date.dateLong }}
output
Monday, 13 June 2022