WEEKS_DIFF
Overview
Returns the number of complete weeks between two dates or timestamps. The result equals the first argument minus the second argument, truncated toward zero (no rounding).
Syntax
Parameters
<end>: DATE or TIMESTAMP type, used as the minuend.<start>: DATE or TIMESTAMP type, used as the subtrahend.
Returns NULL if either argument is NULL. Any remaining days that do not form a complete week are truncated, not rounded.
Examples
Related Documentation
- DATEDIFF — general-purpose date difference function supporting multiple time units
- DAYS_DIFF, MONTHS_DIFF, YEARS_DIFF
