Someone help me with a code to countdown Years, Months, Weeks, Days, Hours and Minutes in a single formula property and a single date property (using the ranges as well)
Connect
1 Answer
You can use a Notion formula like this:
format(dateBetween(prop("Date"), now(), "years")) + "y " + format(dateBetween(prop("Date"), now(), "months")) + "m " + format(dateBetween(prop("Date"), now(), "days")) + "d " + format(dateBetween(prop("Date"), now(), "hours") % 24) + "h " + format(dateBetween(prop("Date"), now(), "minutes") % 60) + "m"
Use Date for your Notion property name and it will work as you need.
Without Answer
-
- 337
- 0
- Apr 29
-
- 1287
- 1
- Apr 4
-
- 413
- 1
- Mar 20
-
- 417
- 0
- Mar 14
-
- 361
- 0
- Feb 21
-
- 342
- 1
- Feb 14
-
- 424
- 0
- Feb 13
-
- 424
- 0
- Feb 11
- see all
Recent Activities
joeythelemur commented Apr 29
How can I better organize a LOT of properties?amandabee selected an answer Apr 29
Adding a basic feedback form to pages in a Notion…amandabee answered Apr 29
In Notion, I want the “Title” column to be filled …amandabee answered Apr 29
How can I better organize a LOT of properties?
...