Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
areli1990
Contributor
Contributor

Dates

 

how I can subtract two dates format: ' DD / MM / YYYY hh : mm : ss [ .fff ] TT ' ) . ?

 

for example : 05/20/2016 3:49:24 PM - 5/18/2016 1:10:54 PM

 

 

I appreciate support

 

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Interval(TimeStamp#(Field1, 'D/M/YYYY hh:mm:ss TT') - TimeStamp#(Field2, 'D/M/YYYY hh:mm:ss TT'))

Or this if you want only days difference:

Date(Floor(TimeStamp#(Field1, 'D/M/YYYY hh:mm:ss TT'))) - Date(Floor(TimeStamp#(Field2, 'D/M/YYYY hh:mm:ss TT')))

View solution in original post

2 Replies
sunny_talwar

May be this:

Interval(TimeStamp#(Field1, 'D/M/YYYY hh:mm:ss TT') - TimeStamp#(Field2, 'D/M/YYYY hh:mm:ss TT'))

Or this if you want only days difference:

Date(Floor(TimeStamp#(Field1, 'D/M/YYYY hh:mm:ss TT'))) - Date(Floor(TimeStamp#(Field2, 'D/M/YYYY hh:mm:ss TT')))

areli1990
Contributor
Contributor
Author

Thank you very much for your support