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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
amien
Specialist
Specialist

datediff issue

i have two dates:

20090421 and 20090501 .. i need the datediff in days.

Date(LastPaymentDate,'YYYYMMDD') - Date(InvoiceDueDate,'YYYYMMDD') gives me 80

1 Solution

Accepted Solutions
amien
Specialist
Specialist
Author

nevermind

date#(LastPaymentDate,'YYYYMMDD') - date#(InvoiceDueDate,'YYYYMMDD') as Due

View solution in original post

2 Replies
amien
Specialist
Specialist
Author

nevermind

date#(LastPaymentDate,'YYYYMMDD') - date#(InvoiceDueDate,'YYYYMMDD') as Due

Not applicable

Hi

Use Date# instead of the Date-function.
The Date-function only formats the field as a date. Date# evaluates the field as a date with numeric representation and the result will be 10.

/Fredrik