Convert timestamp to date
Syntax
roundDay($timestamp)
Description
Converts the time timestamp
to a date.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
timestamp | Business object | A date value that represents a point in time. | yes |
Return value
Type: Business Object
A date value representing the specified point in time. Specifications for time (hours, minutes etc.) are resetted.
Examples
Note: The output may differ depending on the calendar's time zone.
dateFormat("dd-MM-yy hh:mm:ss").format(roundDay(now()))
Output: 07-10-21 05:00:00