[TD_SYSFNLIB.] TRUNC ( date_value [, fmt ] )
- Name of the database where the function is located.
- A date or timestamp argument.
A character expression.
If this syntax element is NULL, NULL is returned.
If fmt is omitted, date_value is truncated to the nearest day. Sunday is considered the first day of the week. For ISO years, Monday is considered the first day of the week.
If this syntax element is not valid, an error is returned.