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: 
Not applicable

How to convert date format

how to convert     

20131022005811 to 22/10/2013                       

Labels (1)
18 Replies
tresB
Champion III
Champion III

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

tresB
Champion III
Champion III

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 ?

tresB
Champion III
Champion III

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