date-from-timestamp()

This function converts a timestamp a into a date.

Important note: Internally, the date still has a time component. An equality test (e.g. with the function a == b ? c : d) of two seemingly equal date values may lead to a negative result since such a test considers the time components of the two date values!

Parameters


Parameter

Description

a

Timestamp.


Examples


The function is executed on a field of type "String" or "Date".


Parameter a

Result

2005-01-01 08:20:00.0

2005-01-01