<?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 Re: UTC time Conversion for InfoTemplate popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/utc-time-conversion-for-infotemplate-popup/m-p/1193610#M77977</link>
    <description>&lt;P&gt;You can convert that to a readable date with this code&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var time = '2022-07-18T10:45:00-06:00';
console.log(new Date(time).toLocaleString()); //returns "7/18/2022, 12:45:00 PM"&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 19 Jul 2022 18:56:35 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2022-07-19T18:56:35Z</dc:date>
    <item>
      <title>UTC time Conversion for InfoTemplate popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/utc-time-conversion-for-infotemplate-popup/m-p/1193605#M77976</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp; Is it possbile to convert a time that is returned by a fetch and looks like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2022-07-18T10:45:00-06:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to a more avg. usable readable format?&lt;/P&gt;&lt;P&gt;I can use:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;${idp_filedate:DateFormat}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;to convert:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tue, 19 Jul 2022 18:34:00 GMT&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;7/19/22, 12:34 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please let me know, thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;~AJ&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Jul 2022 18:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/utc-time-conversion-for-infotemplate-popup/m-p/1193605#M77976</guid>
      <dc:creator>AJThomas</dc:creator>
      <dc:date>2022-07-19T18:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: UTC time Conversion for InfoTemplate popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/utc-time-conversion-for-infotemplate-popup/m-p/1193610#M77977</link>
      <description>&lt;P&gt;You can convert that to a readable date with this code&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var time = '2022-07-18T10:45:00-06:00';
console.log(new Date(time).toLocaleString()); //returns "7/18/2022, 12:45:00 PM"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 19 Jul 2022 18:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/utc-time-conversion-for-infotemplate-popup/m-p/1193610#M77977</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-07-19T18:56:35Z</dc:date>
    </item>
  </channel>
</rss>

