Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

SQL date export format

Hi all 

Has anyone seen a date format like this that has come out of SQL? I'm am struggling to convert it to an actual date format..

The 2nd column is manually typed to show what the date actually is. 

 

Capture.JPG

1 Solution

Accepted Solutions
johnca
Specialist
Specialist

It looks like it might be counting in hundredths of seconds. Taking the last 2 entries, subtracting one from the other and dividing by 3 (days between dates) I get 132,285. Divide 1440 (seconds in a day) by that result and I get .01088. There is no timestamp in your  2nd column so hard to say.

HTH,

John

View solution in original post

4 Replies
Anil_Babu_Samineni

iCreatedDate is the UNIX format or what it is?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

i'm not sure what the format is, we have a solution on how to convert it in SQL..

SELECT FORMAT(CAST(dbo.fCore_IntToDateTime(iCreatedDate) as date),'dd/MM/yyyy')

 

but we wanted to try and find a solution in Qlik also. 

johnca
Specialist
Specialist

It looks like it might be counting in hundredths of seconds. Taking the last 2 entries, subtracting one from the other and dividing by 3 (days between dates) I get 132,285. Divide 1440 (seconds in a day) by that result and I get .01088. There is no timestamp in your  2nd column so hard to say.

HTH,

John

Brett_Bleess
Former Employee
Former Employee

Did John's post happen to work out?  That seems to be the most plausible explanation of things.  If that did help you get things resolved, be sure to return to the tread and use the Accept as Solution button on his post to give him credit for the assistance and let other Community Members know that was the issue etc...  If you are still trying to figure things out, I would almost say it might be wise to put a post up on the DB vendors site too in order to see if someone there can confirm things as to what that value is etc...  They would be the experts on that.  Sorry I do not have something better.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.