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: 
Prabhu1204
Creator
Creator

Make date Condition

Hello,

I have a make date condition in Qlikview 

 

 

" MakeDate(LEFT(Timestamp,4), MID(Timestamp,6,2), MID(Timestamp,9,2)) as Date" when I run the script the dates are getting populated in Date filed. But when i tried to use the same expression in text box, I am not geetting the date, instead i am getting "-".

 

Taking timestamp from the .csv file. For text box , i used the timestamp value directly " 20190723T130840.000-0500"

 

 

Can you clear me this

 

 

 

 

-Prabhu
1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Try this instead:

Date(Date#(Left(TimeStamp, 8), 'YYYYMMDD'))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Try this instead:

Date(Date#(Left(TimeStamp, 8), 'YYYYMMDD'))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Prabhu1204
Creator
Creator
Author

It works,, Thank you.. 

but how it works(The condition which i posted) in Script and not in text box expression? any reason behind it ?

-Prabhu
jonathandienst
Partner - Champion III
Partner - Champion III

Your expression could not have worked in any environment based on the information you provided. If you believe it worked somewhere, then something else was going on.

The expresssion was attempting this MakeDate():

MakeDate(2019, 72, 'T1')

which is plainly not valid.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein