Current date

Syntax

	today()

Description

Constructs a date value representing the current day of the year from the user calendar point of view, represented by a tl.core:Date value (in the system calendar).

Return value

Type: Business Object

A date value representing the atual day according to the user calendar.

Examples

Note: The output may differ depending on the calendar time zone.

Unformatted date

	today()

Output: 06.10.2021

Formatted date

	dateFormat("dd-MM-yyy hh:mm:ss").format(today())

Output: 06-10-2021 05:00:00