<?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: Querying a feature layer based on date? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1284206#M48962</link>
    <description>&lt;P&gt;I realize now that you seemed to be asking a different question originally. Sorry for the guessing.&lt;/P&gt;&lt;P&gt;To your question: Yes, the pulldata getRecord operation allows you to query date fields. Essentially, any WHERE statement you can pass to a feature layer, is supported in the pulldata getRecord operation.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pulldata("@layer","getRecord","&amp;lt;yourlayerURL&amp;gt;","RECDATETIME BETWEEN CURRENT_TIMESTAMP - 7 AND CURRENT_TIMESTAMP")&lt;/LI&gt;&lt;LI&gt;pulldata("@layer","getRecord","&amp;lt;yourlayerURL&amp;gt;","RECDATETIME BETWEEN DATE '2023-04-27' AND DATE '2023-04-29'")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the Date and Time format section of this help topic for details on the date queries you can make to an ArcGIS layer:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Important consideration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS stores date values in UTC.&lt;/LI&gt;&lt;LI&gt;The pulldata() get record operation returns only ONE record.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 00:49:14 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2023-05-01T00:49:14Z</dc:date>
    <item>
      <title>Querying a feature layer based on date?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1283862#M48930</link>
      <description>&lt;P&gt;Using Survey123 Connect, is it possible to query a feature layer based on a dateTime field? I've been trying this, but have not had any luck.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 14:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1283862#M48930</guid>
      <dc:creator>bsklaohfl</dc:creator>
      <dc:date>2023-04-28T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer based on date?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1283986#M48936</link>
      <description>&lt;P&gt;Below is an example: Configures the Inbox to retrieve only records where the date value in the &lt;EM&gt;install_date&lt;/EM&gt; column is now older than a week from the current date.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsmaelChivite_0-1682701645618.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69495iC19F7EC610D7CEE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsmaelChivite_0-1682701645618.png" alt="IsmaelChivite_0-1682701645618.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 17:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1283986#M48936</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-04-28T17:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer based on date?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1284005#M48942</link>
      <description>&lt;P&gt;Thank you for responding. Can this feature be used for a pulldata getRecord calculation?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 17:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1284005#M48942</guid>
      <dc:creator>bsklaohfl</dc:creator>
      <dc:date>2023-04-28T17:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Querying a feature layer based on date?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1284206#M48962</link>
      <description>&lt;P&gt;I realize now that you seemed to be asking a different question originally. Sorry for the guessing.&lt;/P&gt;&lt;P&gt;To your question: Yes, the pulldata getRecord operation allows you to query date fields. Essentially, any WHERE statement you can pass to a feature layer, is supported in the pulldata getRecord operation.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;pulldata("@layer","getRecord","&amp;lt;yourlayerURL&amp;gt;","RECDATETIME BETWEEN CURRENT_TIMESTAMP - 7 AND CURRENT_TIMESTAMP")&lt;/LI&gt;&lt;LI&gt;pulldata("@layer","getRecord","&amp;lt;yourlayerURL&amp;gt;","RECDATETIME BETWEEN DATE '2023-04-27' AND DATE '2023-04-29'")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the Date and Time format section of this help topic for details on the date queries you can make to an ArcGIS layer:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Important consideration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS stores date values in UTC.&lt;/LI&gt;&lt;LI&gt;The pulldata() get record operation returns only ONE record.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 00:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/querying-a-feature-layer-based-on-date/m-p/1284206#M48962</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-05-01T00:49:14Z</dc:date>
    </item>
  </channel>
</rss>

