Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

calculation of date difference

Dear all,

Which function I have to use to calculate no. of days of given dates?

Example:

Date1 - date2 = xx days

Pls suggest.

4 Replies
Anonymous
Not applicable
Author

interval(date(DATE_CLOSED)- date(DATE_REPORTED),'d') as [No of Days]

robert_mika
Master III
Master III

Interval(Date1-Date2,'d')


Example

=Interval('1/1/2015'-'2/1/2014','d')

Answer: 334

avinashelite

use Interval() function, if you want net working days difference then use networkingdays() function.

mukesh24
Partner - Creator III
Partner - Creator III

Use Interval() to calculate day difference or convert date into number & simply subtracts 2 dates