Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
lukaspuschner
Partner - Creator
Partner - Creator

julian date

Hello,

i have an problem with the julian date.

i have julian numbers like 2456811.

This number is the 02.06.2016 in our time.

Can someone explain me hot to calculate this in qlikview?

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Ah I see

That will work if you have 6 digit date. But you have 7 digit.

you need to subtract the offset 2415019 which is equivalent to 30.12.1899

try below

Load *,

Date(Date - 2415019) as NewDate;

Load * inline

[

Date

2456811

2455825

];

Regards

ASHFAQ

View solution in original post

8 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

Date(MakeDate(1900+left(text(FIELDNAME),len(FIELDNAME)-3))+right(text(FIELDNAME),3)-1) as [Date],


Regards

ASHFAQ

lukaspuschner
Partner - Creator
Partner - Creator
Author

thank you, i m going to try it

lukaspuschner
Partner - Creator
Partner - Creator
Author

thanks again, but it is not working

ashfaq_haseeb
Champion III
Champion III

Ah I see

That will work if you have 6 digit date. But you have 7 digit.

you need to subtract the offset 2415019 which is equivalent to 30.12.1899

try below

Load *,

Date(Date - 2415019) as NewDate;

Load * inline

[

Date

2456811

2455825

];

Regards

ASHFAQ

lukaspuschner
Partner - Creator
Partner - Creator
Author

i ll try

tresesco
MVP
MVP

If your date 02.06.2016 -

is  in DD.MM.YYYY, then try

          Load

                   Date( YourJulianDateNum-2414288 ) as Date

if in MM.DD.YYYY, then

          load

                    Date( YourJulianDateNum-2414405 ) as Date

lukaspuschner
Partner - Creator
Partner - Creator
Author

it works perfect, thank you

ashfaq_haseeb
Champion III
Champion III

My pleasure

Regards

ASHFAQ