Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to subtract two dates

hi

i have two dates fields opendate and closedate .

i need subtract open date and close date.how to do it.

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

Interval(closedate - opendate) as Diff

or using NetWorkDays()

NetWorkDays(opendate, closedate) as WorkDayDiff

View solution in original post

3 Replies
sunny_talwar

May be like this:

Interval(closedate - opendate) as Diff

or using NetWorkDays()

NetWorkDays(opendate, closedate) as WorkDayDiff

Not applicable
Author

Thanks

Not applicable
Author

can also use the inherent number value of the date within Qlick

= Num(Date1) - Num(Date2)