arcade Date function

1142
1
Jump to solution
04-18-2019 08:33 PM
EleanorDhuyvetter
New Contributor II

Hello! So I am having a problem with the "Date" function in Arcade. I want to convert Epoch time to a readable format for a pop up, and its giving me a date in 1970. The range of date values in my feature layer are around '1555416000', which when I use an epoch time converter comes out to 04/16/2019 at 00 UTC. Below you can see that is not the output of the Date function. 

I am fairly new to arcade, so I could be coding it wrong. I just have not found another way to do it other than on ESRI's arcade function library, which says epoch time values are the first input to the function.

Any info would be helpful, thanks!  

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

Hi Eleanor,

It looks like your time may be in seconds rather than milliseconds.  Try adding 3 zeros at the end:

1555416000000

View solution in original post

1 Reply
JakeSkinner
Esri Esteemed Contributor

Hi Eleanor,

It looks like your time may be in seconds rather than milliseconds.  Try adding 3 zeros at the end:

1555416000000