Jguido
(Joe Guido)
February 28, 2023, 10:36pm
1
I need a formula that works with General Caster that will allow me calculate the number of days between 2 given dates. Can anyone help me with this?
Example-
1/3/2023 and 1/4/2023 would = 1
1/3/2023 and 1/5/2023 would = 2
1/3/2023 and 1/2/2023 would = -1
Hello there @Jguido ,
I think @rob might be able to help here
2 Likes
Jguido
(Joe Guido)
March 1, 2023, 9:31pm
3
@rob Can you help with this?
rob
(Roberto Tremonti)
March 2, 2023, 11:19am
5
Hey @Jguido
You can calculate the difference in days between two dates using the following GC formula.
DATEVALUE({item's First Date}) - DATEVALUE({item's Second Date})
1 Like
Jguido
(Joe Guido)
March 2, 2023, 5:27pm
7
@rob It keeps saying unexpected error and doesn’t load the number
Jguido
(Joe Guido)
March 7, 2023, 6:55pm
9
I Solved it.
The correct formula is:
DAYS({item’s First Date},{item’s Second Date})
Krunchy
(Guillaume Servonnat)
June 14, 2024, 6:48am
11
Hello,
I was looking for the same solution but it looks like this formula doesn’t work anymore as the automation fails.
I have tried the first mentioned solution using DATEVALUE or TEXT(DATEVALUE) mentioned in the GC documentation, it doesn’t work either.
Any idea what might have changed?
Thank you !
Jguido
(Joe Guido)
June 14, 2024, 7:37am
12
I think the formula I ended up using was:
DAYS({Date Column 1},{Date Column 2})
I just ran the automation on my end to make sure it works and it does for me. Hope that helps
1 Like
Krunchy
(Guillaume Servonnat)
June 14, 2024, 8:35am
13
Thanks For the quick reply .
I will test this again.
You confirm that this formula is meant to be working with General Caster, right ?
rob
(Roberto Tremonti)
June 14, 2024, 2:18pm
14
No, it doesn’t work in General Caster.
That’s a formula working in the Formula column.
Here’s the correct formula for General Caster.
DATEVALUE({item's To Date}) - DATEVALUE({item's From Date})