Discussion Board for collaboration on QlikView Scripting.
We have Julian dates in our SQL Server database.
I can convert them on the database client as well as in the script at the sql part of the script.
But I am doing two part ETL. 'Source --> Staging' and 'Staging --> Final qvd'.
So, I don't want to perform coversion on the database in the 'Source --> Staging' script.
Once the data is loaded to Staging, can I convert in the 'Staging --> Final qvd' script??
I mean without hitting the database again.
SELECT schedwin.WO.DATECREAT, DATEADD(s, ABS(DATECREAT), '19700101') ASRecord_Create_Datetime FROM schedwin.WO
Is there any wahy to do this in QlikView script please?
These are not Julian dates. They are UNIX times, i.e. number of seconds since 1970-01-01.
TimeStamp(MakeDate(1970) + DATECREAT/24/60/60) as MyDate
This is working and is really helpful.
Thank you very much for the quick answer.