Formula Components

Formulas and Databases

Reference

Formula Examples

minute

Learn how to use the minute function in Notion formulas.

1

minute(date)

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.

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

minute

College Info Geek on Notion

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

)

If so, we subtract

`now()`

's minute value from `now()`

in order to get to the current hour.If not, we add *next* hour.

`now()`

's minute value to `now()`

in order to get to the โ 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 21d ago

Copy link

On this page

Example Formulas

Example Database

View and Duplicate Database

"Nearest Hour" Property Formula