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

Date in test format.

Hai all,

I have converted .XML file into .XLSX and uploaded. Then date has picked as test format. Can I change it in QVD.

Labels (1)
5 Replies
ashfaq_haseeb
Champion III
Champion III

Yes you can convert textual date to dates.

can you attach few lines of sample data?

Regards

ASHFAQ

its_anandrjs
Champion III
Champion III

Provide any sample data and with the help of Date#() and Date() function you can achieve this.

maxgro
MVP
MVP

when you read from xlsx

use an interpretation function     Date#(string, format) to convert from string to number

date#( A, 'YYYY.MM.DD' )

where A=1997.08.06 returns 35648

Not applicable
Author

27-FEB-2014
28-FEB-2014
28-FEB-2014
07-MAR-2014
28-FEB-2014
28-FEB-2014
28-FEB-2014
28-FEB-2014

above records has to convert into date format because I need date calculation. as per above its uploading as test .

Thanks,

Dhanushka.

ashfaq_haseeb
Champion III
Champion III

Hi,,

Try below and let me know if that worked,

Load *, Date(Date#(Date,'DD-MMM-YYYY'),'DD/MM/YYYY') as NewDate;

load * Inline

[

Date

27-FEB-2014

28-FEB-2014

28-FEB-2014

07-MAR-2014

28-FEB-2014

28-FEB-2014

28-FEB-2014

28-FEB-2014

];

Regards

ASHFAQ