Skip to main content
Question

calculate duration between 2 dates

  • January 13, 2017
  • 0 replies
  • 1374 views

I just want to simply add how many days it is from from the start date to the end date.  I want the full duration, including weekends.
This topic has been closed for replies.

Well in its simplest from that is a numeric formula field.

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

  • Author
  • Registered
  • January 13, 2017
Thanks.  How would I do the above but saying but add one day?

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

  • Author
  • Registered
  • January 13, 2017
thanks again.  Another question on this.  I have a field called Budget Weeks.  I want to simply say Take Budget weeks * 7 (so I can get an approx number of days)

  • Author
  • Registered
  • January 13, 2017
Oh...never mind...figured it out!  Sum([Budget Weeks])*7

why the sum?
Budget Weeks] * 7

  • Registered
  • June 20, 2018

I am trying to get a duration as well and for some reason this is not working.

ToDays([Date Responded]-[Form Recorded Date])

It says expecting duration but found number? Both fields are date fields. I am thoroughly confused.


Set the field to be type formula numeric.  It is set to be formula duration.

or if you really do want the result to be a duration field type, then get rid of the ToDays( ....

ToDays(  )  converts a Duration to the Numeric # of Days.

This was super helpful! Thanks!! So I got the field to give me the amount of days between dates, is there a way to convert those days to months or years?

It depends how accurate it needs to be as to the complexity if the formula. It also depends if you want decimals.

The low tech way to Years is to just divide by 365.25. For months to multiply by 12/365.25.

The actual syntax will depend on whether your days calculation is a duration field or a numeric field.