Links

minute

Learn how to use the minute function in Notion formulas.
The minute() function returns an integer (number) between 0 and 59 that corresponds to the minute of its date argument.
1
minute(date)
minute() (and its sibling functions hour, day, date, month, and year) is useful for manipulating dates within Notion formulas.

Example Formulas

1
minute(now()) // Output: 25 (When current time was 11:25 AM)
2
3
// Assume a propety called Date with a current date of June 24, 2022 11:29 AM
4
minute(prop("Date")) // Output: 29
minute() can be used with other functions such as dateSubtract to change the value of a date, like so:
1
// Assume the value of now() is June 24, 2022 11:34 AM
2
dateSubtract(now(), minute(now()), "minutes")
3
// Output: June 24, 2022 11:00 AM
You can take this concept even further to “hard-code” any date into a Notion formula. See the section on Hard-Coding Dates into Formulas within the now article for more on how to do this.

Example Database

This example database shows both the current time (using the now function), as well as the current time rounded to the nearest hour.

View and Duplicate Database

"Nearest Hour" Property Formula

1
// Compressed
2
if(minute(now()) < 30, dateSubtract(now(), minute(now()), "minutes"), dateAdd(now(), 60 - minute(now()), "minutes"))
3
4
// Expanded
5
if(
6
minute(
7
now()
8
) < 30,
9
dateSubtract(
10
now(),
11
minute(
12
now()
13
),
14
"minutes"
15
),
16
dateAdd(
17
now(),
18
60 - minute(
19
now()
20
),
21
"minutes"
22
)
23
)
First, an if statement checks if the minute value of now is less than 30.
If so, we subtract now()'s minute value from now() in order to get to the current hour.
If not, we add now()'s minute value to now() in order to get to the next hour.

Other formula components used in this example:

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.
Last modified 4mo ago