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
-
- 48
- 0
- 4 days ago
-
- 87
- 0
- Aug 12
-
- 131
- 0
- Aug 7
-
- 221
- 0
- Jul 17
-
- 1279
- 0
- Apr 14
-
- 852
- 0
- Apr 12
-
- 1380
- 0
- Apr 11
-
- 799
- 0
- Apr 10
- see all
Recent Activities
renvik04 asked 3 days ago
How Can I Use Notion to Organize a Busy Work Workf…QMuzikDirektor asked Aug 12
Search Doesn't Seem To Worknotionbackups answered May 22
How to print or export note or page as pdf with fi…
...

