Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

conversion of general to date format

Hi All,

            I am trying to load data from excel sheets. The data contains date fields in (18-APR-08 12.00.00.000000000 AM) this format. In excel its the general format. I want to convert this data  into date format into qlikview and then use date functions. How can I do this??? Please suggest some way to acheive this.

6 Replies
Not applicable
Author

If you dont want time, use

date#(date_field,'DD-MMM-YY')

for date and time use timestamp#()

Kiran.

Not applicable
Author

I have tried using it but doesnt seem to work. It gives me data as it is.. Attaching a small example of data..

Not applicable
Author

Can you share a sample of field in excel?

Try with: date#(left(trim(date_field),9),'DD-MMM-YY') as date

Kiran.

Not applicable
Author

I have tried the above solution but no use.. Please find the sample of data attached in above reply. See if that helps you..

Not applicable
Author

It seems to work for me.

Kiran.

Not applicable
Author

found a solution for the problem..

Thanks Kiran for the above suggestions......