<?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: Dynamic Date in hosted feature layer in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-date-in-hosted-feature-layer/m-p/626930#M24135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer can be found here...&amp;nbsp;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/" title="https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/"&gt;Querying Feature Services: Date-Time Queries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2019 05:16:22 GMT</pubDate>
    <dc:creator>GillPaterson</dc:creator>
    <dc:date>2019-09-17T05:16:22Z</dc:date>
    <item>
      <title>Dynamic Date in hosted feature layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-date-in-hosted-feature-layer/m-p/626929#M24134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ArcGIS Portal I have a number of Hosted Feature Layers published through GeoEvent with the data in ArcGIS DataStore. I would like to filter these layers using a dynamic date filter, eg only show features that have an update date within the last 1 or 24 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this &lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-8191-dynamic-date-filter"&gt;dynamic date filter doc&lt;/A&gt; which was very helpful, however in Portal (10.6.1) it only seems to take simple date expressions, not anything to do with hours. I can get "definitionExpression": "cdts &amp;gt; (CURRENT_DATE - 1)" to work with any number of days. The field type is listed as Date, and the field shows Date/Time information. Is there an example of an expression that calculates the difference in time for ArcGIS Data Store? I have tried the following with no luck...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;updated &amp;gt; DATEADD(day, 1, GETDATE())&lt;/EM&gt;&amp;nbsp; - I thought I would try sql just in case it worked.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;updated &amp;gt; DATEADD(hour, 1, GETDATE())&lt;/EM&gt;&amp;nbsp; - I thought I would try sql just in case it worked.&lt;BR /&gt;&lt;EM&gt;updated &amp;gt; (CURRENT_DATE - INTERVAL '2 days')&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;updated &amp;gt; (timestamp(now()) - interval '2 days')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;updated &amp;gt; (timestamp(now()) - interval '2 hours')&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;timestamp(updated) &amp;gt; (CURRENT_TIMESTAMP - interval '2 days')&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;timestamp(updated) &amp;gt; (CURRENT_TIMESTAMP - interval '12 hours')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other hints or suggestions??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 09:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-date-in-hosted-feature-layer/m-p/626929#M24134</guid>
      <dc:creator>GillPaterson</dc:creator>
      <dc:date>2019-05-15T09:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Date in hosted feature layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-date-in-hosted-feature-layer/m-p/626930#M24135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer can be found here...&amp;nbsp;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/" title="https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/"&gt;Querying Feature Services: Date-Time Queries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 05:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/dynamic-date-in-hosted-feature-layer/m-p/626930#M24135</guid>
      <dc:creator>GillPaterson</dc:creator>
      <dc:date>2019-09-17T05:16:22Z</dc:date>
    </item>
  </channel>
</rss>

