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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date and Time Functions

Hi,

   

   

       day( '1971-10-12' ) returns 12

     day( '35648' ) returns 6 ( Because 35648=1997-08-06 )

     Can anyone explain how QlikView interprets 35648 as '1997-08-06' in case of Date and Time Functions?

5 Replies
swuehl
MVP
MVP

It's explained in these two blog posts (and also have a look at the linked material):

Get the Dates Right

Automatic Number Interpretation

its_anandrjs
Champion III
Champion III

ravikumar_iyana
Creator
Creator

Hi,

In our Qlikview is already inbuilt Date() for easily converting purpose 

Frank_Hartmann
Master II
Master II

Date Starting Point in Qlikview is:

=num(Date('31.12.1899','DD.MM.YYYY'))  = 1

So for every additional day the num value increases in value 1

So if you add 35648 days then you meet your date

Anonymous
Not applicable
Author

if you use the expression

DATE(1)          AS          [FIRST DATE]

you wil see, the first date considered by qlikview is 31/12/1899.

All the dates are counted since this date