Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
blunckc1
Creator
Creator

Match date component of 2 timestamps

Hi everyone,

I can't get around this problem and hoping for some help.  My data set contains 2 columns as below.  What I need to do is write an if statement that checks whether the date part of column 1s timestamp matches the date part of column 2s timestamp.

  

Column 1Column 2
5/07/2016 9:005/07/2016 0:00
23/11/2015 13:005/07/2016 0:00
3/09/2015 9:005/07/2016 0:00

Expected result would be:

Row 1 = true

Row 2 = false

Row 3 = false

Thanks in advance!

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Carl,

If(SubField([Column 1],' ',1) = SubField([Column 2],' ',1),'True','False')

View solution in original post

2 Replies
tamilarasu
Champion
Champion

Hi Carl,

If(SubField([Column 1],' ',1) = SubField([Column 2],' ',1),'True','False')

blunckc1
Creator
Creator
Author

Legend, thanks heaps!