DATEDIFF_UDF(TIMESTAMP, TIMESTAMP)
Definition
This user-defined function (UDF) subtracts a timestamp
from another timestamp
.
Parameters
FIRST_PARAM
TIMESTAMP
The timestamp
that represents the minuend.
SECOND_PARAM
TIMESTAMP
The timestamp
that represents the subtrahend.
Returns
Returns an integer with the difference of days between the first and the second timestamps.
Usage example
Input:
Output:
Last updated