Skip to main content
Solved

How to calculate days from start to end of a period?

  • Feb 2, 2021 7:28 PM UTC
  • 3 replies
  • 1040 views
  • Translate All

Is there a formula or function to count the days from the beginning of a period to the end of a period specified to the ARM report form?  I tried the following but it’s not giving the correct result:

=DateDiff('d', @PeriodEnd, @PeriodStart)

Best answer by aborisova94

Hello!

You can try this formula 

=DateDiff('d',Report.GetPeriodEndDate(@EndPeriod) , Report.GetPeriodStartDate(@StartPeriod))

 

 

View original

3 replies

  • Freshman II
  • Answer
  • Feb 5, 2021 3:39 PM UTC

Hello!

You can try this formula 

=DateDiff('d',Report.GetPeriodEndDate(@EndPeriod) , Report.GetPeriodStartDate(@StartPeriod))

 

 

Translate

  • Author
  • Freshman I
  • Feb 5, 2021 7:41 PM UTC

Thank you very much, it worked! 

I only had to change the order to =DateDiff('d',Report.GetPeriodStartDate(@StartPeriod) , Report.GetPeriodEndDate(@EndPeriod) 

to obtain the result I was looking for.

Translate

  • Freshman II
  • Feb 5, 2021 7:42 PM UTC

You are welcome! :)

Translate