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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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?

Labels (1)
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

tresB
Champion III
Champion III

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