<?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 to number for unique ID in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/date-to-number-for-unique-id/m-p/1299654#M6321</link>
    <description>&lt;P&gt;I have a date field that defaults to today then I use this calc (I do this in case there was a tablet issues and they add data the next day).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This year I added ToLocal because if a crew worked a little late, esp in Alaska, the UTC time can cause the date to be the next day.&lt;/P&gt;&lt;P&gt;Concatenate($feature.PointID, "_", text(ToLocal($feature.FieldEvalDate), "Y-MM-DD"))&lt;/P&gt;&lt;P&gt;Time zones and UTC can be tricky.&amp;nbsp; 123 used to defaut to midnight if there was no time and so this happened all the time.&amp;nbsp; Now it defaults to noon.&amp;nbsp; If you have hours in your calc it could change depending on which timezone they are in.&amp;nbsp; In my case it is a display field so it recalc on display.&amp;nbsp; On a calculated value you may have to have something to handle this.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 13:29:18 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2023-06-15T13:29:18Z</dc:date>
    <item>
      <title>Date to number for unique ID</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/date-to-number-for-unique-id/m-p/1299097#M6314</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to use current date as an automatically generated unique ID when filling out a Field Map Smart Form.&lt;/P&gt;&lt;P&gt;Which function(s) do you need in order to convert a date like&amp;nbsp;&lt;SPAN&gt;Jun 14, 2023, 1:47:43 PM GMT+2 into 20230714134743 for example?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 12:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/date-to-number-for-unique-id/m-p/1299097#M6314</guid>
      <dc:creator>Mathijs_van_der_Sanden</dc:creator>
      <dc:date>2023-06-14T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date to number for unique ID</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/date-to-number-for-unique-id/m-p/1299136#M6315</link>
      <description>&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_blank" rel="noopener"&gt;Text()&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Text(Now(), "YMMDDHHmmss")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Jun 2023 13:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/date-to-number-for-unique-id/m-p/1299136#M6315</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-06-14T13:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date to number for unique ID</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/date-to-number-for-unique-id/m-p/1299654#M6321</link>
      <description>&lt;P&gt;I have a date field that defaults to today then I use this calc (I do this in case there was a tablet issues and they add data the next day).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This year I added ToLocal because if a crew worked a little late, esp in Alaska, the UTC time can cause the date to be the next day.&lt;/P&gt;&lt;P&gt;Concatenate($feature.PointID, "_", text(ToLocal($feature.FieldEvalDate), "Y-MM-DD"))&lt;/P&gt;&lt;P&gt;Time zones and UTC can be tricky.&amp;nbsp; 123 used to defaut to midnight if there was no time and so this happened all the time.&amp;nbsp; Now it defaults to noon.&amp;nbsp; If you have hours in your calc it could change depending on which timezone they are in.&amp;nbsp; In my case it is a display field so it recalc on display.&amp;nbsp; On a calculated value you may have to have something to handle this.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 13:29:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/date-to-number-for-unique-id/m-p/1299654#M6321</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-06-15T13:29:18Z</dc:date>
    </item>
  </channel>
</rss>

