Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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 (4)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

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
tresesco
MVP
MVP

Try like:

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

qliky88
Creator
Creator
Author

Hi @tresesco , 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. 


tresesco
MVP
MVP

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