<?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: Format-date function in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-function/m-p/1191250#M43695</link>
    <description>&lt;P&gt;Survey123 doesn't store time to the precision of seconds in the datetime field so &lt;SPAN&gt;string(format-date(${dc_date},'%S')) will always just return 00. I asked the about this at the developers conference and apparently it's intended behavior and there are no plans to change it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 14:58:30 GMT</pubDate>
    <dc:creator>AndyMcClary</dc:creator>
    <dc:date>2022-07-11T14:58:30Z</dc:date>
    <item>
      <title>Format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-function/m-p/1190471#M43662</link>
      <description>&lt;P&gt;I'm using the format-date function to extract the various elements of date and time as follows but I cannot get the last element (0 padded seconds) to be anything other than 00 (i.e. '%S' below).&lt;/P&gt;&lt;P&gt;string(format-date(${dc_date},'%y'))&lt;BR /&gt;+ string(format-date(${dc_date},'%m'))&lt;BR /&gt;+ string(format-date(${dc_date},'%d'))&lt;BR /&gt;+ string(format-date(${dc_date},'%H'))&lt;BR /&gt;+ string(format-date(${dc_date},'%M'))&lt;BR /&gt;+ string(format-date(${dc_date},'%S'))&lt;/P&gt;&lt;P&gt;dc_date is defined as a datetime field with a default value of now() and&amp;nbsp;bind::esri:fieldType to&amp;nbsp;esriFieldTypeDate.&lt;/P&gt;&lt;P&gt;s_id is defined as a text field with the calculation set to the format-date function above&amp;nbsp; and&amp;nbsp;bind::esri:fieldType to&amp;nbsp;esriFieldTypeString&lt;/P&gt;&lt;P&gt;I've tried changing the fieldTypes but this didn't have any impact.&lt;/P&gt;&lt;P&gt;Survey form spreadsheet with these two records is attached.&lt;/P&gt;&lt;P&gt;Anyone else with this issue / solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result of the format-date calculation is as follows with the 00 at the end for seconds every time: 2207071317&lt;FONT color="#FF0000"&gt;00&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 17:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/format-date-function/m-p/1190471#M43662</guid>
      <dc:creator>BKS</dc:creator>
      <dc:date>2022-07-07T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-function/m-p/1191250#M43695</link>
      <description>&lt;P&gt;Survey123 doesn't store time to the precision of seconds in the datetime field so &lt;SPAN&gt;string(format-date(${dc_date},'%S')) will always just return 00. I asked the about this at the developers conference and apparently it's intended behavior and there are no plans to change it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/format-date-function/m-p/1191250#M43695</guid>
      <dc:creator>AndyMcClary</dc:creator>
      <dc:date>2022-07-11T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-function/m-p/1191268#M43698</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;Thanks for relaying that info.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind of frustrating that ESRI would say it is "intended" behaviour when they document it otherwise.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION2_AF58C0297155474F993CEA115682CED3:~:text=0%2Dpadded%20minute-,%25S,0%2Dpadded%20second,-%253" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION2_AF58C0297155474F993CEA115682CED3:~:text=0%2Dpadded%20minute-,%25S,0%2Dpadded%20second,-%253&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Again, thx for the info.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 15:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/format-date-function/m-p/1191268#M43698</guid>
      <dc:creator>BKSchwarz</dc:creator>
      <dc:date>2022-07-11T15:42:04Z</dc:date>
    </item>
  </channel>
</rss>

