Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
qliky88
Creator
Creator

Date formatted as numbers

Hi All, 

 

In my data set I have in my DATE_AUTHORISED column '20190726' etc.. (i.e. 26th July 2019)

How would I format this to a readable date? 

 

Thanks 🙂 

Labels (2)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

That means, your date field doesn't require a string parsing, you just have to get the formatting right. Check your date format variable :

Set DateFormat = 'MM-DD-YYYY'; // or the one of your choice

View solution in original post

3 Replies
tresB
Champion III
Champion III

Try like:

Date(Date#(DATE_AUTHORISED, 'YYYYMMDD')) as DATE_AUTHORISED

qliky88
Creator
Creator
Author

Hi @tresB , just inserted that into my script and it has returned only NULL values. In my data mnager the column is formatted as a date, but when I try to display the columns in a straight table it is only numeric values returned. 


tresB
Champion III
Champion III

That means, your date field doesn't require a string parsing, you just have to get the formatting right. Check your date format variable :

Set DateFormat = 'MM-DD-YYYY'; // or the one of your choice