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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
hosasahana
Partner - Contributor III
Partner - Contributor III

date conversion from DD-MMM to MM/DD/YYYY

hi all,

I have an excel source which has date in this format as shown in below picture. After load qlik stores it as 20-Sep.I want to convert this to MM/DD/YYYY ()9/20/2020)format in qlik script. I tried date,date#,makedate etc... but nothing works. pl can someone help?

hosasahana_0-1604992735737.png

 

1 Solution

Accepted Solutions
zhaofeng
Partner - Creator
Partner - Creator

Hi

I paste the source code below,please check it.

 

LOAD

          A as User,
          Month,
          date(num(Month),'MM/DD/YY') as Year_Month_Day,
          [Call Count] as Call_Count
FROM  test_dateconversion.xlsx(ooxml, embedded labels, table is Sheet1);

View solution in original post

7 Replies
zhaofeng
Partner - Creator
Partner - Creator

Could you please provide your excel file.I think it may caused by data format

hosasahana
Partner - Contributor III
Partner - Contributor III
Author

hi,

thanks for responding. I have attached a test file. Please check.

(I want to change this format in click script and not in excel.)

zhaofeng
Partner - Creator
Partner - Creator

Hi

I've read your attachment.I found the date format is different from your previous screenshot.I also got a screenshot.Whatever,I've made an example in the qvw file,please check it

hosasahana
Partner - Contributor III
Partner - Contributor III
Author

hi,

I am unable to open the qvw locally as I do not have qlik in local machine since we work on cloud and  currently without enterprise version cannot install as well I guess.

Please can you post the code line used directly if possible? sorry for the trouble.

QFabian
MVP
MVP

HI @hosasahana , this works fine for me :


LOAD A,
Month,
date("Month", 'MM/DD/YYYY ') as Date,
[Call Count],
D
FROM
test_dateconversion.xlsx
(ooxml, embedded labels, table is Sheet1);

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
QFabian
MVP
MVP

that works  fine!

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
zhaofeng
Partner - Creator
Partner - Creator

Hi

I paste the source code below,please check it.

 

LOAD

          A as User,
          Month,
          date(num(Month),'MM/DD/YY') as Year_Month_Day,
          [Call Count] as Call_Count
FROM  test_dateconversion.xlsx(ooxml, embedded labels, table is Sheet1);