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
-
- 122
- 0
- Oct 3
-
- 311
- 0
- Aug 12
-
- 353
- 0
- Aug 7
-
- 464
- 0
- Jul 17
-
- 1552
- 0
- Apr 14
-
- 1058
- 0
- Apr 10
-
- 1083
- 0
- Apr 7
-
- 1030
- 0
- Apr 6
- see all
Recent Activities
freelancerops answered 17 hours ago
Recurring bills - monthly valuesfreelancerops answered 19 hours ago
Budget by month (Rollup adding all months, can't s…freelancerops answered 22 hours ago
How do i rollup by monthsfreelancerops answered 1 day ago
How might I create a header/detail page?freelancerops answered 2 days ago
Linking Databases
...

