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
-
- 116
- 0
- Oct 3
-
- 301
- 0
- Aug 12
-
- 348
- 0
- Aug 7
-
- 457
- 0
- Jul 17
-
- 1533
- 0
- Apr 14
-
- 1048
- 0
- Apr 10
-
- 1067
- 0
- Apr 7
-
- 1018
- 0
- Apr 6
- see all
Recent Activities
freelancerops answered 7 hours ago
How can I update a related page when an action is …freelancerops answered 7 hours ago
Looking to create a proposal w/lists that automati…freelancerops answered 7 hours ago
How can I calculate minutes to add total hours (or…freelancerops answered 10 hours ago
How Can I Use Notion to Organize a Busy Work Workf…freelancerops answered 10 hours ago
How can I filter rollups to show only the most rec…
...

