<?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: Date format for DateTime field in Editor Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1134891#M75976</link>
    <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/994"&gt;@HeatherGonzago&lt;/a&gt;,&amp;nbsp;appreciated.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Unfortunately, there is no direct and easy way to set this right now&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As a non-direct way, perhaps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Hide the original date field in the form&lt;/LI&gt;&lt;LI&gt;Insert a new input field with the date configuration that I want&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When the user clicks "Add", in the background I replace the date in (1) with (2)&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Could I ask you if you can think of a better approach?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 07:13:32 GMT</pubDate>
    <dc:creator>ZA1</dc:creator>
    <dc:date>2022-01-19T07:13:32Z</dc:date>
    <item>
      <title>Date format for DateTime field in Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1134485#M75946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;A feature I am using in &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html" target="_self"&gt;Editor&lt;/A&gt; widget has a &lt;EM&gt;DateTime&lt;/EM&gt; attribute&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default the Date/Time fields are in the format of:&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt; mm&lt;/FONT&gt;/&lt;FONT color="#339966"&gt;dd&lt;/FONT&gt;/&lt;FONT color="#0000FF"&gt;yyyy&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Instead, I need it to be:&lt;STRONG&gt;&lt;FONT color="#339966"&gt; dd&lt;/FONT&gt;/&lt;FONT color="#FF6600"&gt;mm&lt;/FONT&gt;/&lt;FONT color="#0000FF"&gt;yyyy&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I do not know how to do this change.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZA1_0-1642490975106.png" style="width: 340px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31667iAEC00BD7F3F3DDF7/image-dimensions/340x291?v=v2" width="340" height="291" role="button" title="ZA1_0-1642490975106.png" alt="ZA1_0-1642490975106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But preferably, when the user clicks the date field a calendar should appear to select a day.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 07:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1134485#M75946</guid>
      <dc:creator>ZA1</dc:creator>
      <dc:date>2022-01-18T07:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date format for DateTime field in Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1134866#M75974</link>
      <description>&lt;P&gt;Hi, thanks for asking about this. Unfortunately, there is no direct and easy way to set this right now in the FeatureForm (and hence the Editor since this uses the FeatureForm widget). We are actively working on making this easier for all widgets that make use of dates and will hopefully have a better way to handle this in an upcoming release.&lt;BR /&gt;&lt;BR /&gt;For now, formatting for dates in the FeatureForm is taken directly by the browser. If you're browser's locale was set to "en-GB", the format would flip to dd/mm/yyyy. I realize that this is not the answer you were looking to get. We do hope to make this easier in the near future.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 02:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1134866#M75974</guid>
      <dc:creator>HeatherGonzago</dc:creator>
      <dc:date>2022-01-19T02:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date format for DateTime field in Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1134891#M75976</link>
      <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/994"&gt;@HeatherGonzago&lt;/a&gt;,&amp;nbsp;appreciated.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Unfortunately, there is no direct and easy way to set this right now&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As a non-direct way, perhaps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Hide the original date field in the form&lt;/LI&gt;&lt;LI&gt;Insert a new input field with the date configuration that I want&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When the user clicks "Add", in the background I replace the date in (1) with (2)&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Could I ask you if you can think of a better approach?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 07:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1134891#M75976</guid>
      <dc:creator>ZA1</dc:creator>
      <dc:date>2022-01-19T07:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date format for DateTime field in Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1576403#M86390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We followed your advice and set the language to Danish. That worked, and the format switched to dd/mm/yyyy. At that time, the ArcGIS Maps SDK for JavaScript version was 4.24. However, after we updated to ArcGIS Maps SDK for JavaScript v. 4.31, the format has switched back to mm/dd/yyyy, even though the browser setting remains unchanged. Is there anything we can do to restore the dd/mm/yyyy format?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 14:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1576403#M86390</guid>
      <dc:creator>JohnZachariassen</dc:creator>
      <dc:date>2025-01-16T14:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date format for DateTime field in Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1576491#M86394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/33428"&gt;@JohnZachariassen&lt;/a&gt;&amp;nbsp; I wonder if you are seeing a slight update that was made for localization in 4.31?&amp;nbsp;The SDK will automatically use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/localization/" target="_blank" rel="noopener"&gt;locale&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;defined via the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang" target="_blank" rel="noopener"&gt;lang attribute&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the root html element, or the locale of the browser.&amp;nbsp; Do you have the locale defined on the root html element? Another thing to try, is to set the locale using&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#locale" target="_self"&gt; intl.setLocale().&lt;/A&gt; This should take care of it if it is not automatically getting picked up by the browser. Take a look at&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/localization/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/localization/&lt;/A&gt;&amp;nbsp;for additional info on it. If it still doesn't work, let us know.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 17:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1576491#M86394</guid>
      <dc:creator>HeatherGonzago</dc:creator>
      <dc:date>2025-01-16T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date format for DateTime field in Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1578134#M86423</link>
      <description>&lt;P&gt;@Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/994"&gt;@HeatherGonzago&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;We modified the code by using intl.setLocale(), and now the date format is as we wanted. Thank you for the helpful answer; it is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 09:44:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1578134#M86423</guid>
      <dc:creator>JohnZachariassen</dc:creator>
      <dc:date>2025-01-23T09:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date format for DateTime field in Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1578830#M86430</link>
      <description>&lt;P&gt;Great, glad to hear it's working out. Thanks for letting us know.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 20:28:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-format-for-datetime-field-in-editor-widget/m-p/1578830#M86430</guid>
      <dc:creator>HeatherGonzago</dc:creator>
      <dc:date>2025-01-24T20:28:32Z</dc:date>
    </item>
  </channel>
</rss>

