Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Convert Date to DDMMYYYY from CSV source file

Hi,

I am trying to convert the below date type from a csv file to DDMMYYYY while loading the date into Qlikview. Please help.

Monday, August 6, 2018 1:30 AM

6 Replies
MarioCenteno
Creator III
Creator III

May be try this

date#(date(Date_FIELD),'DD/MM/YYYY hh:mmtt') as date

Anonymous
Not applicable
Author

No, it doesn't work. The date column is blank.

MarioCenteno
Creator III
Creator III

Try

=date(Date_field,'DD/MM/YYYY hh:mm')

vishsaggi
Champion III
Champion III

‌ccan you tell me the structure of your csv like is it comma separated ? If yes your date

field will have only Monday and other values will hold in next field separation. If you can screen shot the structure of your csv we can do a work around.

gawalimegha
Contributor III
Contributor III

Main:

LOAD date,

     replace(Replace(date,left(date,Index(date,',',1)),''),',','') as ChkDate    

FROM

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

Temp:

LOAD * ,

Date(Date#(ChkDate,' MMM DD YYYY hh:mm tt')) as FinalDate

Resident Main;

drop Table Main;

manoj217
Creator III
Creator III

use date date# to convert