New in Formulas 2.0
The week()
function returns an integer (number) between 1
and 53
that corresponds to the ISO week of the year of its date argument.
week(date) date.week()
week()
(and its sibling functions minute, hour, date, month, and year) is useful for manipulating dates within Notion formulas.
Example Formulas
week(parseDate("2003-02-01")) /* Output: 5 */
parseDate("2023-08-24").week() /* Output: 34 */