Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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

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