Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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)