Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression for datetime in difference

Hi All,

I want write expression for difference between to datetime fileds :

Ex :  Date1  :03/20/2013:08:23:25

        Date2  : 04/20/2013:17:32:02

difference between these 2 dates in expression side.admin

2 Replies
PrashantSangle

Hi,

use interval() .

Like,

inetrval(date2-date1,'D hh:mm')

If you dont want in hr and mins then remove HH mm

For details check in help file.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
SunilChauhan
Champion
Champion

actully see below

i am assuming date 2 is greater

age(date2,date1)  returns difference in days

inetrval(date2,date1,'hh')   for difference in hours


inetrval(date2,date1,'mm')   for difference in minutes


hope this helps

Sunil Chauhan