<?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: Help including a date specification in REST API URL in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-including-a-date-specification-in-rest-api/m-p/1174226#M4134</link>
    <description>&lt;P&gt;Bingo. This works:&lt;/P&gt;&lt;P data-unlink="true"&gt;https://dhsgis.wi.gov/server/rest/services/DHS_COVID19/COVID19_WI_V2/MapServer/11/query?where=RptDt&amp;gt;=timestamp'2022-05-01'&amp;amp;outFields=*&amp;amp;returnGeometry=false&amp;amp;outSR=4326&amp;amp;f=json&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Josh!&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 16:13:54 GMT</pubDate>
    <dc:creator>jdjohn215</dc:creator>
    <dc:date>2022-05-16T16:13:54Z</dc:date>
    <item>
      <title>Help including a date specification in REST API URL</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-including-a-date-specification-in-rest-api/m-p/1174204#M4132</link>
      <description>&lt;P&gt;Until last week, I was regularly querying &lt;A href="https://data.dhsgis.wi.gov/datasets/wi-dhs::covid-19-historical-data-by-state-v2/about" target="_self"&gt;this MapServer&lt;/A&gt; with a URL that specified minimum date. Sometime last week, I started getting error code 400.&lt;/P&gt;&lt;P data-unlink="true"&gt;My now-failing URL looks like this: https://dhsgis.wi.gov/server/rest/services/DHS_COVID19/COVID19_WI_V2/MapServer/11/query?where=RptDt&amp;gt;='2022-05-01'&amp;amp;outFields=*&amp;amp;returnGeometry=false&amp;amp;outSR=4326&amp;amp;f=json&lt;/P&gt;&lt;P&gt;The key bit is where=RptDt&amp;gt;='2022-05-01'.&lt;/P&gt;&lt;P&gt;This URL, without the date argument, works just fine, so this isn't an issue with the server itself.&lt;/P&gt;&lt;P data-unlink="true"&gt;https://dhsgis.wi.gov/server/rest/services/DHS_COVID19/COVID19_WI_V2/MapServer/11/query?where=1%3D1&amp;amp;outFields=*&amp;amp;returnGeometry=false&amp;amp;outSR=4326&amp;amp;f=json&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did ArcGIS change the formatting for date values? Does anyone know how I can update my URL to work properly?&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 15:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-including-a-date-specification-in-rest-api/m-p/1174204#M4132</guid>
      <dc:creator>jdjohn215</dc:creator>
      <dc:date>2022-05-16T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help including a date specification in REST API URL</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-including-a-date-specification-in-rest-api/m-p/1174212#M4133</link>
      <description>&lt;P&gt;Try using something like&amp;nbsp;&lt;STRONG&gt;timestamp '2022-05-01'&lt;/STRONG&gt;. We encountered this with a server upgrade in the past, where the word "timestamp" was previously not required, which broke some of our queries.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 15:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-including-a-date-specification-in-rest-api/m-p/1174212#M4133</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-05-16T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help including a date specification in REST API URL</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-including-a-date-specification-in-rest-api/m-p/1174226#M4134</link>
      <description>&lt;P&gt;Bingo. This works:&lt;/P&gt;&lt;P data-unlink="true"&gt;https://dhsgis.wi.gov/server/rest/services/DHS_COVID19/COVID19_WI_V2/MapServer/11/query?where=RptDt&amp;gt;=timestamp'2022-05-01'&amp;amp;outFields=*&amp;amp;returnGeometry=false&amp;amp;outSR=4326&amp;amp;f=json&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Josh!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 16:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/help-including-a-date-specification-in-rest-api/m-p/1174226#M4134</guid>
      <dc:creator>jdjohn215</dc:creator>
      <dc:date>2022-05-16T16:13:54Z</dc:date>
    </item>
  </channel>
</rss>

