dlv.innerHTML = `<b><span class='name_plc'></span></b><br>ID: <span class="ida">${feature.graphic.attributes.id}</span><br> URL: <a href="${feature.graphic.attributes.url}" target="_blank">View</a> <br> Updated: <span class='tiCon1'>${feature.graphic.attributes.updated}</span><br>Grid_value: ${feature.graphic.attributes.grid_value}<br> Event Time: <span class='tiCon2'>${feature.graphic.attributes.eventTime}</span> <style>.esri-popup__navigation { display: none;}</style>`;
let date1= $('.tiCon1').text();
let dt = new Date(date1).toUTCString();
console.log(dt);
I try the above to convert it, for instance and it consoles as invalid date...
In the above, my event time and updated queries resolve as the numbers below.. I want to convert these to a human readable format.
Updated: 1593543128000 <---------------------
Event Time: 1593021559000 <----------------------------