Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

date conversion

Hi all ,

my date format is 20070624.

i need 2007-60-24

please help me

1 Solution

Accepted Solutions
arulsettu
Master III
Master III

try this

date(Date#('20070624','YYYYMMDD'),'YYYY-MM-DD')

View solution in original post

5 Replies
arulsettu
Master III
Master III

try this

date(Date#('20070624','YYYYMMDD'),'YYYY-MM-DD')

avinashelite

try like this

Date(Date_field,'YYYY-MM-DD')

or

Date(date#(Date_field),'YYYY-MM-DD')

Chanty4u
MVP
MVP

try belwo

date(Date#('Datefield','YYYYMMDD'),'YYYY-MM-DD') as new date

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Date# will interpret the number as Date. By YYYYMMDD you're defining what kind of date format you have, helping QV to understand how the data is set.

Date will now convert the data into format that you wish.

All the above solutions are correct and should work for you.

Anonymous
Not applicable
Author

=(Date(Date#((20070624),'YYYYMMDD'),'DD-MM-YYYY'))