toSystemCalendar
Syntax
$date.toSystemCalendar()
Description
Transforms a date value to a system calendar to be able to access and manipulate fields like year, month, etc.
The date value is expected to be of type tl.core:Date
.
Parameter
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
date | Business object | A date value to be represented by the calendar. | yes |
Return value
Type: Business object
A system calendar representing the date value from date
.
Examples
Note: The output may differ depending on the calendar's time zone.
toSystemCalendar(date(2012, 5, 5))
Output: (System) calendar object