Skip to main content
Question

Calculate the difference between two dates

  • July 10, 2020
  • 0 replies
  • 454 views

I have a formula numeric field (called Duration) where I'd like to show in days (excluding weekends) the difference between the start date (date field) and end date (date field).  I'm using the following formula, but the number in the Duration field is not right (([End Date:] - [Start Date:]) / Days(30)).  

Please let me know what am I doing wrong.

Thank you!

-g

------------------------------
Gwen Peters
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
Try this

ToDays([end date]-[start date])

You may need to do 

ToDays([end date]-[start date]) + 1

if you want to count both the start and end days as days.

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------