<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dates displaying in wrong format in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dates-displaying-in-wrong-format/m-p/657142#M61286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently had an error come to my attention whereby the dates on my map (that I retrieve from a service) are displaying incorrectly. Instead of showing the date text like "1284378356999" is being displayed to screen. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not changed the code for the page but Im unsure if something has changed at the service level (this is maintained by a seperate team). Has any experienced this issue before?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 09:02:53 GMT</pubDate>
    <dc:creator>GavinTrowles</dc:creator>
    <dc:date>2010-10-18T09:02:53Z</dc:date>
    <item>
      <title>Dates displaying in wrong format</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dates-displaying-in-wrong-format/m-p/657142#M61286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently had an error come to my attention whereby the dates on my map (that I retrieve from a service) are displaying incorrectly. Instead of showing the date text like "1284378356999" is being displayed to screen. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not changed the code for the page but Im unsure if something has changed at the service level (this is maintained by a seperate team). Has any experienced this issue before?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 09:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dates-displaying-in-wrong-format/m-p/657142#M61286</guid>
      <dc:creator>GavinTrowles</dc:creator>
      <dc:date>2010-10-18T09:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dates displaying in wrong format</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dates-displaying-in-wrong-format/m-p/657143#M61287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That looks like &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Unix_time" rel="nofollow noopener noreferrer" target="_blank"&gt;Unix Time&lt;/A&gt;&lt;SPAN&gt; and you can convert it to whatever format you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.epochconverter.com/programming/#javascript" rel="nofollow noopener noreferrer" target="_blank"&gt;This&lt;/A&gt;&lt;SPAN&gt; site explains how to do it in js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myDate = new Date( your epoch date *1000);
document.write(myDate.toGMTString()+"&amp;lt;br&amp;gt;"+myDate.toLocaleString());&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dates-displaying-in-wrong-format/m-p/657143#M61287</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2021-12-12T03:48:53Z</dc:date>
    </item>
  </channel>
</rss>

