<?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 format-date capturing local time, not UTC in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-capturing-local-time-not-utc/m-p/1408744#M56154</link>
    <description>&lt;P&gt;I am attempting to create two variables that each capture the UTC date and time based on an esriFieldTypeDate calculation. Interestingly, the&amp;nbsp;esriFieldTypeDate variable (${rovDplyEndFull}) is captured in UTC, as I expect, but another calculation formatting ${rovDplyEndFull} is reverting to local time. Here is a representation to explain:&lt;/P&gt;&lt;TABLE border="1" width="75%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;&lt;STRONG&gt;calculation&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;&lt;STRONG&gt;bind::esri:fieldType&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;calculate&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;rovDplyEndFull&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;once(if(${rovDplyEnd} = 'End',now(), ""))&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;esriFieldTypeDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="48px"&gt;calculate&lt;/TD&gt;&lt;TD width="25%" height="48px"&gt;rovDplyEndDate&lt;/TD&gt;&lt;TD width="12.5%" height="48px"&gt;format-date(${rovDplyEndFull},'%m/%d/%Y')&lt;/TD&gt;&lt;TD width="12.5%" height="48px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="47px"&gt;calculate&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;rovDplyEndTime&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;format-date(${rovDplyEndFull},'%H:%M:%S:%3')&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Exporting the Excel output from Survey123 leads to this:&lt;/P&gt;&lt;TABLE border="1" width="99.99999999999999%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.33333333333333%"&gt;&lt;STRONG&gt;rovDplyEndFull&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;&lt;STRONG&gt;rovDplyEndDate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;&lt;STRONG&gt;rovDplyEndTime&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33333333333333%"&gt;04/11/2024 19:42:54.703&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;04/11/2024&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;15:42:54:703&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect and am looking for the result for rovDplyEndTime to be&amp;nbsp;19:42:54.703. Since our form will be used across time zones, I am hoping to capture the UTC time. Changing the bind::esri:fieldType for&amp;nbsp;rovDplyEndTime to&amp;nbsp;esriFieldTypeDate led to an inaccurate result of something like "December 31, 1969".&lt;/P&gt;&lt;P&gt;Any ideas? I'm happy to provide more information as well.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 20:43:10 GMT</pubDate>
    <dc:creator>lkline</dc:creator>
    <dc:date>2024-04-11T20:43:10Z</dc:date>
    <item>
      <title>format-date capturing local time, not UTC</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-capturing-local-time-not-utc/m-p/1408744#M56154</link>
      <description>&lt;P&gt;I am attempting to create two variables that each capture the UTC date and time based on an esriFieldTypeDate calculation. Interestingly, the&amp;nbsp;esriFieldTypeDate variable (${rovDplyEndFull}) is captured in UTC, as I expect, but another calculation formatting ${rovDplyEndFull} is reverting to local time. Here is a representation to explain:&lt;/P&gt;&lt;TABLE border="1" width="75%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;&lt;STRONG&gt;calculation&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;&lt;STRONG&gt;bind::esri:fieldType&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;calculate&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;rovDplyEndFull&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;once(if(${rovDplyEnd} = 'End',now(), ""))&lt;/TD&gt;&lt;TD width="12.5%" height="25px"&gt;esriFieldTypeDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="48px"&gt;calculate&lt;/TD&gt;&lt;TD width="25%" height="48px"&gt;rovDplyEndDate&lt;/TD&gt;&lt;TD width="12.5%" height="48px"&gt;format-date(${rovDplyEndFull},'%m/%d/%Y')&lt;/TD&gt;&lt;TD width="12.5%" height="48px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="47px"&gt;calculate&lt;/TD&gt;&lt;TD width="25%" height="47px"&gt;rovDplyEndTime&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;format-date(${rovDplyEndFull},'%H:%M:%S:%3')&lt;/TD&gt;&lt;TD width="12.5%" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Exporting the Excel output from Survey123 leads to this:&lt;/P&gt;&lt;TABLE border="1" width="99.99999999999999%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.33333333333333%"&gt;&lt;STRONG&gt;rovDplyEndFull&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;&lt;STRONG&gt;rovDplyEndDate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;&lt;STRONG&gt;rovDplyEndTime&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.33333333333333%"&gt;04/11/2024 19:42:54.703&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;04/11/2024&lt;/TD&gt;&lt;TD width="33.33333333333333%"&gt;15:42:54:703&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect and am looking for the result for rovDplyEndTime to be&amp;nbsp;19:42:54.703. Since our form will be used across time zones, I am hoping to capture the UTC time. Changing the bind::esri:fieldType for&amp;nbsp;rovDplyEndTime to&amp;nbsp;esriFieldTypeDate led to an inaccurate result of something like "December 31, 1969".&lt;/P&gt;&lt;P&gt;Any ideas? I'm happy to provide more information as well.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 20:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/format-date-capturing-local-time-not-utc/m-p/1408744#M56154</guid>
      <dc:creator>lkline</dc:creator>
      <dc:date>2024-04-11T20:43:10Z</dc:date>
    </item>
  </channel>
</rss>

