week

Learn how to use the week function in Notion formulas.

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()
Code language: JavaScript (javascript)

week() (and its sibling functions minutehourdatemonth, and year) is useful for manipulating dates within Notion formulas.

week(parseDate("2003-02-01")) /* Output: 5 */

parseDate("2023-08-24").week() /* Output: 34 */

Code language: JavaScript (javascript)
About the Author

My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas