YearweekFromDate function
Returns the week number in the year from the given date.
Namespace
datetime
Input
date(date
|string
)
Output
week(int
)
Example
If basedate
contains the date 2008-08-18
, then the two following functions are equivalent, and return the value 33
set-column result datetime:YearweekFromDate('2008-08-18')
set-column result datetime:YearweekFromDate(basedate)
Created in 2020 by Google Inc.