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: 
jim_chan
Specialist
Specialist

How to convert.change a date format in loading script?

Hi guys,

i am facing a problem.

i have a date field with date like 20160223. now i want to change the datefiled format to 23/2/2016.

my expression is Date#(date([MY_DATE]),'DD/M/YYYY') as [MY_DATE], - but is wrong....

pls help!

Rgds,

jim

Labels (1)
5 Replies
sunny_talwar
MVP
MVP

Like this

Date(Date#([MY_DATE]),'YYYYMMDD'), 'DD/M/YYYY') as [MY_DATE]

sunny_talwar
MVP
MVP

jim_chan
Specialist
Specialist
Author

something is wrong with the scripting... error.. missing out brackets?

jim_chan
Specialist
Specialist
Author

Date(Date#([MY_DATE],'YYYYMMDD'), 'DD/M/YYYY') as [MY_DATE] -  this only correct, too many brackets bro

sunny_talwar
MVP
MVP

Yup