<?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: create a unique ID using date and time using Arcade in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699592#M12686</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;! I just realized also that the dashes are the problem. Strange that I can store the same value with the dashes in Survey123 as an integer but not in FieldMaps.&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2026 15:28:49 GMT</pubDate>
    <dc:creator>dsinha</dc:creator>
    <dc:date>2026-05-01T15:28:49Z</dc:date>
    <item>
      <title>create a unique ID using date and time using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699587#M12684</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create a unique id based on date and time at the moment of collection. The value has to be integer and in the format of YY-MM-HHmmss (2026-05-110356). I have seen how to do it using the &lt;EM&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt; &lt;/EM&gt;function in arcade, but I can't seem to locate the expression that I need to generate the output in integer form.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 15:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699587#M12684</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-05-01T15:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: create a unique ID using date and time using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699591#M12685</link>
      <description>&lt;P&gt;To get your format of&amp;nbsp;"2026-05-110356" (did you want to leave out the day?), you would use the syntax&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Text(Now(), "Y-MM-HHmmss")

//if you want to include the day, use this syntax
Text(Now(), "Y-MM-DD-HHmmss")&lt;/LI-CODE&gt;&lt;P&gt;However, this cannot be converted into an integer with the dashes included. You can use this syntax to return an integer&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Number(Text(Now(), "YMMHHmmss"))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 May 2026 15:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699591#M12685</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2026-05-01T15:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: create a unique ID using date and time using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699592#M12686</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;! I just realized also that the dashes are the problem. Strange that I can store the same value with the dashes in Survey123 as an integer but not in FieldMaps.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 15:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699592#M12686</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-05-01T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: create a unique ID using date and time using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699597#M12687</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;I just ran into another related issue and I was wondering if you would know how it can be resolved.&lt;/P&gt;&lt;P&gt;The expression&amp;nbsp;Number(Text(Now(), "YMMHHmmss")) works fine in the console and I saved the form to the map and layer in FieldMaps Designer. But when I open the form in FieldMaps on the mobile device, the id number is not calculating and I am getting the error message "Value is invalid".&lt;/P&gt;&lt;P&gt;Any suggestions? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 15:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699597#M12687</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-05-01T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: create a unique ID using date and time using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699612#M12688</link>
      <description>&lt;P&gt;Just a thought here... And&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;has touched on this in the past too (see:&amp;nbsp;&lt;A href="https://community.esri.com/t5/developers-questions/how-to-convert-datetime-to-epoch-time-in-arcade/m-p/1230740#M6404" target="_blank"&gt;https://community.esri.com/t5/developers-questions/how-to-convert-datetime-to-epoch-time-in-arcade/m-p/1230740#M6404&lt;/A&gt;) ... but would using the Unix epoch time help with any of this? It's not as user friendly as YYYYMMDDmmss but it's already an integer. Just a thought.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 16:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699612#M12688</guid>
      <dc:creator>TravisSaladino</dc:creator>
      <dc:date>2026-05-01T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: create a unique ID using date and time using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699616#M12689</link>
      <description>&lt;P&gt;The number you're calculating is probably too big for a regular integer field.&lt;/P&gt;&lt;P&gt;A small integer field (16-bit) only allows for values from&amp;nbsp;-32,768 to 32,767. An integer field (32-bit) allows for values from&amp;nbsp;-2,147,483,648 to 2,147,483,647. Both of these are shorter than what you want.&lt;/P&gt;&lt;P&gt;A big integer field (64-bit) allows for values from&amp;nbsp;-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 16:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699616#M12689</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2026-05-01T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: create a unique ID using date and time using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699841#M12691</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2744"&gt;@TravisSaladino&lt;/a&gt;&amp;nbsp;for your suggestions. Due to impending deadline on Friday, I decided to convert the field type to text and use&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Text(Now(), "Y-MM-DD-HHmmss")&lt;/EM&gt;&lt;/STRONG&gt; function.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 14:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/create-a-unique-id-using-date-and-time-using/m-p/1699841#M12691</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2026-05-04T14:12:33Z</dc:date>
    </item>
  </channel>
</rss>

