Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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