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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to convert date format

how to convert     

20131022005811 to 22/10/2013                       

18 Replies
tresesco
MVP
MVP

Remove quotes around field name, it should work.

Date( Date#( CDAT ,'YYYYMMDDhhMMss'),'DD/MM/YYYY') as Date,

Not applicable
Author

its not working

Not applicable
Author

i have done each possible thing

tresesco
MVP
MVP

Could you share your sample qvw with sample data?

Not applicable
Author

Date#(Left(CDAT,2) & '/' &  mid(CDAT,4,2) & '/' & mid(CDAT,7,4),'DD/MM/YYYY') as Date,

wat this function will do ?

tresesco
MVP
MVP

This will try to do things in a complex way that Date#() alone can do in a simpler way. .

Not applicable
Author

Hi,

Check these in Text objects

 

=Date(Date#('20131022005811' ,'YYYYMMDDhhmmss'),'DD/MM/YYYY')

or 

=Date(Date#(Left('20131022005811',8),'YYYYMMDD'),'DD/MM/YYYY')

If works then use as is in script by replacing with your field without single quotes.

er_mohit
Master II
Master II

Try this in text object

Date(Date#('20131022005811','YYYYMMDDf'),'DD/MM/YYYY')

then in your script side

Not applicable
Author

Thanku so much