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: 
ali_hijazi
Partner - Master II
Partner - Master II

date time issue

hello

I got a qvw document that is reading from Oracle database from a table that contains a column of data type date time

why when I preview the data I see the date time field showing readable dates like 5/3/2012 and not 45123 for example

should n't this field's values be shown as numbers?

Please advise

I can walk on water when it freezes
3 Replies
chematos
Specialist II
Specialist II

I think that happends when is TImestamp instead DateTime. Do you see like 5/3/2012  bringing the dates straight from Oracle but the field in Oracle is a number??

In QV you can format the data like you want so what`s the problem exactly?

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Qlikview is able to see the data type of data returned frpm an ODBC or OLEDB connection. If the data type is date, QV will display it as a date, but remember that date is a dual type, with an underlying numeric value. So 3 May 2012 has a display of 2012/05/03 (depending on your default date format), and a numeric value of 41032.

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable

Commonly this fields have timestamp format.

You can solve this with Date() function in LOAD statement.

Example:

Data:

LOAD Field1,

          Field2,

          Field3,

          Date(Field4) as DateField,

          Field5

FROM database.Table;

This way, DateField have values like 03/05/2012.

Sorry for my bad english.

Regards.-