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: 
raju_salmon
Creator II
Creator II

Date conversion in SQL and QlikView

Hi Expert,

I have a reference SQL code to create a  field called Project date using existing field.

Set Conc = '||'

Select *,

Date('01/01/' $(Conc) char(int(field1/1000)+1900))+(field1-int(field1/1000)*1000-1) days as ProjectDate

From table;

Note: field1 contains 6 digit data.

I need to create this field in Qlik, i have tried but not getting desired result. Can any SQL and Qlik expert would help me here.

Tried below one but did not work.

Load *,

Date(('01/01/' & text(num(field1/1000)+1900))+(field1-num(field1/1000)*1000-1),'YYYY/MM/DD' as ProjectDate

Thank you

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

2 Replies
vishsaggi
Champion III
Champion III

Are you looking for this?

Oracle Julian Date Conversion

raju_salmon
Creator II
Creator II
Author

Thanks Vishwa. Solved my issue.