Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
On May 18th at 10AM EDT we will answer your QlikView questions live. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Difference between two dates?

Hi,

I have two dates stored in two object text.

I want to obtain the number of months between theses two dates?

How i proceed?

Thnks

3 Replies
brenner_martina
Partner
Partner

Hi,

use the expression month(field1)-month(field2)

Not applicable
Author

Hi,

The complete expression is:

(Year(End_Date)-Year(Init_Date))*12 + Num(Month(End_Date))- Num(Month(Init_Date))

Regards.

Not applicable
Author

use this

round((date1-date2)/30)