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                       

1 Solution

Accepted Solutions
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.

View solution in original post

18 Replies
tresesco
MVP
MVP

Try like:

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

Now you can replace your value with field name as well.

Not applicable
Author

its not working..

i have a date field  in this format(YYYYMMDDhhmmss)and i want to map this to calender function i'm using  in which date is in format of DD/MM/YYYY.

tresesco
MVP
MVP

How are you writing the code?

nizamsha
Specialist II
Specialist II

Date( Date#('YourField','YYYYMMDDhhMMss'),'DD/MM/YYYY')

Before u give Date  format check what format its already defined in set format

Not applicable
Author

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

Not applicable
Author

in set format format defined is SET DateFormat='M/D/YYYY';

Not applicable
Author

Use this

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

nizamsha
Specialist II
Specialist II

in set format change the date format MM/DD/YYYY and use this

Date( Date#(YourField,'YYYYMMDDhhMMss'),'DD/MM/YYYY')

Not applicable
Author

this function is not working

i think this can be the problem dat i have defined date in calender function as dd/mm/yyyy and in defult  set format  this is M/D/YYYY'