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: 
gkcchowdary
Creator
Creator

Write the expression to find the number of days between date1and date2?

Fields provide :date1,date2

3 Replies
Anonymous
Not applicable

interval(date1 - date2, 'DD')

aarkay29
Specialist
Specialist

or

simply date1 - date2

MarcoWedel

between date1 and date2 means date1 precedes date2, rigth?

So one solution might be:

date2-date1

hope this helps

regards

Marco