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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

Date issue

Hi 

 

while loading the date column directly from database we are getting long string as result.

for example 

 

Date

 

1441618798583

1441618798582

 

How would I convert it to proper date format

Labels (1)
1 Reply
MartW
Partner - Specialist
Partner - Specialist

can you also tell what the proper output is you where expecting?

from the looks of it this would be an UNIX timestamp. this can be formatted very easily in the Qlik load script.

take a look at this post:

https://community.qlik.com/t5/QlikView-App-Dev/Convert-unix-time-stamp-to-date-and-time/td-p/384453 

Quick NOTE: when you perform this calculation in QLIK, this can only be done in Qlik script.

so don't use that Qlikscript in the SQL statement.

// Qlik Script
LOAD 
Date#(orderDate, 'YYYYMMDD') as OrderDate;
// SQL statement: 
SELECT OrderDate FROM _;