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: 
Anonymous
Not applicable

subtraction of dates

Good morning!

I request your support to know how the subtraction of two dates can be done and the result of these is only shown in days

example

Id start date final date days passed
1 25/06/2017 04/07/2017 9
2 01/02/2017 13/03/2017 40
3 13/11/2017 04/01/2018 52

 

the data that I need to know is: days passed

Help

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,
Have a look at TalendDate.diffDate.

For example, in a tMap you have something like:

TalendDate.diffDate(row1.startDate, row1.finalDate, "DD")

View solution in original post

2 Replies
TRF
Champion II
Champion II

Hi,
Have a look at TalendDate.diffDate.

For example, in a tMap you have something like:

TalendDate.diffDate(row1.startDate, row1.finalDate, "DD")
Anonymous
Not applicable
Author


thank you very much, it really was a very useful solution
Regards!