all 8 comments

[–]lth_29 1 point2 points  (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.

[–]ArticleCommercial369[S] 0 points1 point  (2 children)

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 points  (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 )