Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue in formatting date field in CSV file.

Hello Community,

I have uploaded below excel (csv) file into Qlik. I am trying to format Column Trim(A) as date but it doesn't work.

data.png

I am using Date(A) but below is the result. It removes some values. How can I format as MM/DD/YYYY. I have tried Date(, 'MM/DD/YYYY')  but still gives below result. Somehow it is not able to identify that column as dat...

data1.png

Thanks,

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You have it in DD/MM/YYYY and you want it in MM/DD/YYYY.

Date(Date#( Field, 'DD/MM/YYYY'), 'MM/DD/YYYY')

See QlikView Date fields

HIC

View solution in original post

4 Replies
hic
Former Employee
Former Employee

You have it in DD/MM/YYYY and you want it in MM/DD/YYYY.

Date(Date#( Field, 'DD/MM/YYYY'), 'MM/DD/YYYY')

See QlikView Date fields

HIC

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

As hic said above, your DATE# function is how the date fields are coming into QlikView and your Date() function outside that is how you want to present the date.

MayilVahanan

Hi

Try like this

LOAD *, Alt(Date(A), date(Date#(A ,'DD/MM/YYYY'),'DD/MM/YYYY')) as A1;

LOAD [PO No.],

     A,

     B,

     C,

     D

FROM

Factory_FORTSrg.xls

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks Henric it worked!