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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Difference between dates

How to get difference in days between today's date and some other date. Say difference between 4/26/2012 and 4/18/2012 ?

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

    You can also use interval() function like shown below.

    interval(Date1 - Date2,'d')

    Here you can give parameter as d for days,hh for hours,ss for seconds,  depending on the requirement of differece.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

    You can also use interval() function like shown below.

    interval(Date1 - Date2,'d')

    Here you can give parameter as d for days,hh for hours,ss for seconds,  depending on the requirement of differece.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Thanks Kaushik