can i format teh results of datebetween into years and months?
Connect
2 Answers
See if this helps. I couldn't think of a way that keeps the month and the year, but there's a way to show up the months:
concat(format(abs(dateBetween(prop("Start date"), prop("End date"), "months"))) + " months")
Or even, if you just want the number:
abs(dateBetween(prop("Start date"), prop("End date"), "months"))
Hi, this formula will give you Years and Months between the set dates.
E.g. if the "Start date" was December 4th 2020 and the "End date" was July 17th 2023 the result would show:
3 Years 7 Months
concat(format(abs(floor(dateBetween(prop("Start date"), prop("End date"), "months") / 12))), " Years ", format(abs(mod(dateBetween(prop("Start date"), prop("End date"), "months"), 12))), " Months")
Related questions
- Countdown (Years, Months, Weeks, Days, Hours, and Minutes)
- Same date for start and finish properties to result in an output of 1
- Counting the number of days in a date range based on the year (how to split day between 2023 and 2024)
- Help with formula for recurring date and date formating
- Using start() and end() nested in if function nested in dateBetween function
Without Answer
-
- 87
- 0
- 1 day ago
-
- 72
- 0
- 5 days ago
-
- 479
- 0
- Apr 29
-
- 444
- 1
- Mar 20
-
- 452
- 0
- Mar 14
-
- 400
- 0
- Feb 21
-
- 391
- 1
- Feb 14
-
- 450
- 0
- Feb 13
- see all
Recent Activities
jcarminio asked 1 day ago
Thoughts on adding Notion AI's web search access i…amandabee asked 5 days ago
Display backlinks in a block or page?amandabee answered 5 days ago
Counting Stars?polle answered 6 days ago
Counting Stars?amandabee answered May 13
settings of font colour changed?
...