Hi All! I am trying to work with the DATETIME_DIFF formula but running into some issues. I am assuming the issues come from time/timezone complications, but not sure what the most elegant way around it is...
My goal: I am trying to calculate the difference in time between an expected completion date and an actual completion date.
The situation: Both date fields included time stamps driven by API connected apps and are set to the same time zone.
Date 1: Estimated Pickup Date (defaults to 12am)
Date 2: Ready for Pickup Timestamp (an exact time a checkbox was ticked, i.e. modified)
Formula I am currently trying:
IF({Ready for Pickup Timestamp}, DATETIME_DIFF({Ready for Pickup Timestamp},{Estimated Pickup Date}, "days"))
Incorrect results examples:
- Showing "0" days when Date 2 is at 2:41pm Oct 27th and Date 1 is Oct 28th but at 12am. Should show "-1 day"
- Showing "-1" days when date Date 2 is Oct 25th at 4:24pm and Date 1 is Oct 28th at 12am. I have no idea why this is happening... Should show "-3 days"
Any smart people out there have an idea what might be happening and how to fix it?
Thank you!
Devon