<?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: Difference between Date Format on AGOL Map and embedded map on website in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673093#M62740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I think as a community we need to have something like this idea&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A _jive_internal="true" class="" data-containerid="2167" data-containertype="14" data-objectid="18832" data-objecttype="3227383" href="https://community.esri.com/ideas/18832-esri-default-date-json-display-format-across-entire-suite-of-platforms" style="color: #287433; background-color: transparent; border: 0px; font-weight: inherit; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;ESRI default date JSON display format across entire suite of platforms&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2020 02:59:39 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-08-26T02:59:39Z</dc:date>
    <item>
      <title>Difference between Date Format on AGOL Map and embedded map on website</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673089#M62736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a web map in AGOL where the date attribute is set to display at DD/MM/YYYY. When I test this in AGOL it works fine.&amp;nbsp;However when I use the JS API V4.12 to embed the web map onto my website it reverts to the default date format, MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the popup date format need to be forced to DD/MM/YYYY in the embedded map using JS, if so how is this achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 11:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673089#M62736</guid>
      <dc:creator>BrendanCunningham1</dc:creator>
      <dc:date>2019-08-07T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Date Format on AGOL Map and embedded map on website</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673090#M62737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a Popup Template:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html"&gt;PopupTemplate | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To specify a date format:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#dateFormat" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#dateFormat"&gt;FieldInfoFormat | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of how to create and use a popup template:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-geojson" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-geojson"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673090#M62737</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2019-08-07T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Date Format on AGOL Map and embedded map on website</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673091#M62738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formatting the popup content is a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thought is that it looks like you might have specified some localization in Portal/AGO? I believe this would account for the DD/MM/YYYY format. Either that or AGO is smart enough to recognize the date format of the region you are connecting from.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.arcgis.com/en/arcgis-online/get-started/set-language-region.htm" title="https://doc.arcgis.com/en/arcgis-online/get-started/set-language-region.htm"&gt;Set language and region—ArcGIS Online Help | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the JS API app, you could try using&amp;nbsp;the English (en) locale to see if the European date format persists&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/localization/" title="https://developers.arcgis.com/javascript/latest/guide/localization/"&gt;Localization | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, you could construct an arcade expression&amp;nbsp;in the popup to display the date in a logical format.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/date_functions/" title="https://developers.arcgis.com/arcade/function-reference/date_functions/"&gt;Date Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673091#M62738</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-08-07T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Date Format on AGOL Map and embedded map on website</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673092#M62739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some headway with this approach:&lt;BR /&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;&amp;lt;&lt;SPAN class="" style="color: #000088;"&gt;script&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;SPAN class="" style="color: #006a00;"&gt;// set locale before JSAPI is loaded&lt;/SPAN&gt; dojoConfig = { locale: &lt;SPAN class="" style="color: #c41a16;"&gt;"ja"&lt;/SPAN&gt;, parseOnLoad: &lt;SPAN class="" style="color: #aa0d91;"&gt;true&lt;/SPAN&gt; }; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;&amp;lt;/&lt;SPAN class="" style="color: #000088;"&gt;script&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;insofar as the date format changed... but I couldn't get the proper date DD/MM/YYYY to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end I reverted to one of the other date options in the web map "December 21 1997" and that sufficed.&lt;BR /&gt;&lt;BR /&gt;It's a confusing one as it doesn't seem easy to trace to an exact cause.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 12:48:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673092#M62739</guid>
      <dc:creator>BrendanCunningham1</dc:creator>
      <dc:date>2019-08-08T12:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Date Format on AGOL Map and embedded map on website</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673093#M62740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I think as a community we need to have something like this idea&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A _jive_internal="true" class="" data-containerid="2167" data-containertype="14" data-objectid="18832" data-objecttype="3227383" href="https://community.esri.com/ideas/18832-esri-default-date-json-display-format-across-entire-suite-of-platforms" style="color: #287433; background-color: transparent; border: 0px; font-weight: inherit; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;ESRI default date JSON display format across entire suite of platforms&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 02:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difference-between-date-format-on-agol-map-and/m-p/673093#M62740</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-08-26T02:59:39Z</dc:date>
    </item>
  </channel>
</rss>

