Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
deep2021
Creator III
Creator III

Converting Epoch timestamp to Normal timestamp (Date)

Hi All,

 

i have epoch timestamp in the below format,

 

1669305600000

 166930560000

1669305600001

1669305600003

1669305600005

1669305600006

1669305600006

1669305600006

 

Can you please suggest how to convert epoch timestamp to our normal timestamp?

 

Thanks,

 

Labels (3)
1 Solution

Accepted Solutions
MarcoWedel

I think your timestamps have millisecond resolution:

 

MarcoWedel_0-1673376033515.png

 

table1:
LOAD *,
     Date(Floor(timestart/86400000+25569))	as DateStart,
     Timestamp(timestart/86400000+25569,'MM/DD/YYYY hh:mm:ss.fff')	as DateTimeStart
Inline [
timestart
1669305600000
1669305600001
1669305600003
1669305600005
1669305600006
];

 

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Check this post.

https://community.qlik.com/t5/App-Development/Exactly-How-Qlik-Sense-Convert-Epoch-Time/td-p/125896

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
deep2021
Creator III
Creator III
Author

Hi,

Thanks for the reply,

 

But I am not getting the date in right format after doing this.

 

deep2021_0-1673372586513.png

I used the below code,

 

T1:

load * Inline
[ timestart
1669305600000
1669305600001
1669305600001
1669305600003
1669305600005
1669305600006
1669305600006
1669305600006

];

[time]:

load
timestart,

date(floor(timestart/ 86400 + 25569)) as DateStart



Resident T1;

 

MarcoWedel

I think your timestamps have millisecond resolution:

 

MarcoWedel_0-1673376033515.png

 

table1:
LOAD *,
     Date(Floor(timestart/86400000+25569))	as DateStart,
     Timestamp(timestart/86400000+25569,'MM/DD/YYYY hh:mm:ss.fff')	as DateTimeStart
Inline [
timestart
1669305600000
1669305600001
1669305600003
1669305600005
1669305600006
];