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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Won't load Dates correctly from DB2 Database...

Hello,

So, I am loading data into QlikView from a DB2 database, and one field within the Database is a DATE field. However, when I load the data into QlikView, it does not recognise the date correctly.

Does anyone know how to fix this?

Thanks

17 Replies
rbecher
MVP
MVP

Hi Beth,

what is your default QlikView date format?

SET DateFormat=...?

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

Hi, it is set to the Default 'DD/MM/YYYY'

rbecher
MVP
MVP

What do you get with:

LOAD
Text(PROCESS_DATE) as "PROCESS_DATE";

SQL SELECT PROCESS_DATE FROM TABLE;

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

I get:

41311

41313

41525

jagan
Partner - Champion III
Partner - Champion III

HI,

Try this

LOAD
Date(Num(Text(PROCESS_DATE))) as "PROCESS_DATE";

SQL SELECT PROCESS_DATE FROM TABLE;

Regards,

Jagan.

Not applicable
Author

Once again nothing appears in the drop down

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you attach the sample file.

Regards,

jagan.

Not applicable
Author

Have solved this. It seems QlikView can't read date fields but can read TimeStamp fields.