Hello,
I am trying to pull UTC time data on my feature layer to a leaflet web map. The data is captured by the QuickCapture mobile application and it shows up fine on Esri Online: . However, when I pull it off to leaflet, the date becomes some unconverted UTC time:
Is there a formula or an Esri function that can convert that long integer into an understandable date and time?
Thanks in advance!
Solved! Go to Solution.
Hi @HaowenRui, you can try converting this timestamp (epoch time) to your targeted date/time. For example, use 'new Date(timestamp)' to convert it to your local time, or search for other JS functions to convert it to a date format of a designated time zone. Thanks!
Hi @HaowenRui, you can try converting this timestamp (epoch time) to your targeted date/time. For example, use 'new Date(timestamp)' to convert it to your local time, or search for other JS functions to convert it to a date format of a designated time zone. Thanks!
That worked, thanks a lot!