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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting date format

Hi,

I have the following date format in my system = 01.01.2013

When I import this into Qlikview it comes across as a string like this = 79869598

Any ideas on how to change this a date in Qlikview?

I've used functions date and #date...

Many Thanks

23 Replies
Not applicable
Author

HI ,

     I dont find any Algorithm flow to convert the Number to DateFormat .

//Yusuf

Not applicable
Author

I found a solution to this issue in the below link

Thanks for the help

http://community.qlik.com/thread/15779

Anonymous
Not applicable
Author

Hi ,

The same I have tried to extract year but I didn't get the accurate result...

I tried the below script but it not working ...

ABC:

LOAD Date#(Date, 'DD/MM/YYYY') as Date,

     Year(Date#(Date, 'DD/MM/YYYY')) as year,

     Name,

     Product,

     Sales

FROM

CORE_DUP\123.txt

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

Data:

DateNameProductSales
3/17/2013JimAc8586
1/9/2010JackTv8641
11/27/2014JillLaptop9295
6/18/2014JaneAc5537
12/25/2009JullianTv5365
11/14/2010JissuLaptop8183
2/20/2012JikiTv8627
5/14/2014JeanLaptop8500
5/23/2012JollyAc7320
Koniki
Contributor II
Contributor II

you said only one format 

but you different formats in  excel in that case 

you should be use   date#(alt(datefield,'actula format','required format');