Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkulkarni
Partner - Specialist II
Partner - Specialist II

Date & time convert to Epoch

Hi Friends,

Is there any function to convert date& time value to epoch format ?

below is the sample

"Wednesday, July 26, 2017 6:38:00 AM" convert to  "1501051080" (epoch)

1 Solution

Accepted Solutions
Kushal_Chawda

try this, make sure that DateField is in number format

=Floor((DateField-MakeDate(1970,1,1))*86400)

View solution in original post

7 Replies
Anil_Babu_Samineni

I am hearing first time this? What does this 1501051080 indicates? I mean to say any minutes / Seconds ??

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
Kushal_Chawda

try this, make sure that DateField is in number format

=Floor((DateField-MakeDate(1970,1,1))*86400)

manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

it is in milliseconds

Anil_Babu_Samineni

Or if it is time(Date field) do multiply 86400000

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
PrashantSangle

Hi,

might below thread help you

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
manojkulkarni
Partner - Specialist II
Partner - Specialist II
Author

Thanks Kushal, it is working.

thuaume
Contributor II
Contributor II

Using:

LET vTodayUnix = Floor(((Today()-1)-MakeDate(1970,1,1))*86400);

works perfectly fine, Thank you !