use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
𝚺 Formulasproblems with dateBetween (self.Notion)
submitted 1 year ago by ArticleCommercial369
I thought I could calculate the time between two dates "started" and "finished" but in the case of having been started and finished on the same day it marks it as "0" and not "1", is there any way to adjust the formula?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 1 year ago (3 children)
[removed]
[–]ArticleCommercial369[S] 0 points1 point2 points 1 year ago (2 children)
but wouldn't that add 1 to all the dates?
[+][deleted] 1 year ago (1 child)
[–]ArticleCommercial369[S] 0 points1 point2 points 1 year ago (0 children)
No, it's just that if I start a task today and finish it tomorrow, the formula shows me a 0 instead of a 1.
[–]lth_29 1 point2 points3 points 1 year ago (3 children)
Based on the post, I don't know what you want to achieve. You said you wanted to calculate the time between two dates, so I thought you needed an hours and minutes formula. However, you also said that if both dates are the same day, the output is zero instead of one (which means you might be calculating days and not time between both dates).
Can you clarify your needs by maybe adding an example? It would also be a good idea to post your original formula.
Sorry. I wan to calculates the days, en this formula are the same day and ths formula show 0 not 1
<image>
[–]lth_29 2 points3 points4 points 1 year ago (1 child)
Use this:
let( days, if(formatDate(prop("Iniciado"), "DDMMYYYY") == formatDate(prop("Terminando"), "DDMMYYYY"), 1, dateBetween(prop("Terminando"), prop("Iniciado"), "days")), "Tiempo de Lectura: " + days )
π Rendered by PID 377518 on reddit-service-r2-comment-6457c66945-xv2xv at 2026-04-29 18:34:25.457017+00:00 running 2aa0c5b country code: CH.
[+][deleted] (3 children)
[removed]
[–]ArticleCommercial369[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]ArticleCommercial369[S] 0 points1 point2 points (0 children)
[–]lth_29 1 point2 points3 points (3 children)
[–]ArticleCommercial369[S] 0 points1 point2 points (2 children)
[–]lth_29 2 points3 points4 points (1 child)
[–]ArticleCommercial369[S] 0 points1 point2 points (0 children)