Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Mapping Dates in Qlickview

My Database has Date format as 13-FEB-01 12.00.00.000000000 AM...I am trying to load the data in Qlikview and it gets failed..please let me know how can I fetch data into qlikview.

7 Replies
hic
Former Employee
Former Employee

Timestamp#(Date,'DD-MMM-YY hh.mm.ss.fff tt') as Date

Not applicable
Author

Hi Henric, Thanks for reply..but its not helping me..still not able to fetch the data.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Please describe the problem you are seeing. Are you getting an error message? Null values?

It would be helpful if you could post the lines from the Document Log for the load statement in question.

-Rob

Not applicable
Author

Hi,

Try this :

Date( Date#( DateField, 'DD/MMM/YY'), 'DD-MMM-YYYY') as Date

or

Date(Timestamp#( DateField, 'DD/MMM/YY hh:mm:ss'), 'DD-MMM-YYYY')

as CreatedDate

Regards

Sokkorn
Master
Master

Hi Vikas,

Check my suggestion in this post http://community.qlik.com/message/226755#226755

Regards,

Sokkorn

Not applicable
Author

Hi Rob, I am getting null values when I am putting this in Qlikview. Actually I am not able to see the the Created_Date field after reloading the data in Qlikview.
SET TimeFormat ='hh.mm.ss.fff tt';
SET DateFormat ='DD-MMM-YY';
SET TimestampFormat='DD-MMM-YY hh:mm:ss[.fff] TT';
SET MonthNames='JAN;FEB;MAR;APR;MAY;JUN;JUL;AUG;SEP;OCT;NOV;DEC';
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';

OLEDB CONNECT TO
LOAD "CREATED_DATE";
SQL SELECT "CREATED_DATE" FROM Table_Name;
HI Sokkorn,
Sorry its still not working.
Regards,
Vikas
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Try running the script without the LOAD. Just use the SQL SELECT to see the raw values you get from the database.

-Rob