DAYS_DIFF
Overview
Returns the number of days between two dates or timestamps. Result = first argument - second argument. Equivalent to DATEDIFF(DAY, ...) but with a more concise syntax.
Syntax
Parameters
<end>: DATE or TIMESTAMP type, the minuend.<start>: DATE or TIMESTAMP type, the subtrahend.
Returns NULL if either argument is NULL.
Examples
Related Documentation
- DATEDIFF — general date difference function supporting multiple time units
- HOURS_DIFF, MINUTES_DIFF, SECONDS_DIFF
