<?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 comparing date is throwing error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/comparing-date-is-throwing-error/m-p/684175#M30263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a definition query to only view records where the month is 1 month ahead from current month. So for November, I want to view all December recrods, regardless of day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because it's the end of the year, I would have to account for the year as well so I wrote this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;format(DUE_DATE, 'yyMM') &amp;gt; format(DUE_DATE, 'yyMM')+1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This works when I write a sql select statement with a where clause in sql management studio on the table, but i'm getting syntax errors in the definition query dialog.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2019 20:47:57 GMT</pubDate>
    <dc:creator>tnarladni</dc:creator>
    <dc:date>2019-11-06T20:47:57Z</dc:date>
    <item>
      <title>comparing date is throwing error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/comparing-date-is-throwing-error/m-p/684175#M30263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a definition query to only view records where the month is 1 month ahead from current month. So for November, I want to view all December recrods, regardless of day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because it's the end of the year, I would have to account for the year as well so I wrote this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;format(DUE_DATE, 'yyMM') &amp;gt; format(DUE_DATE, 'yyMM')+1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This works when I write a sql select statement with a where clause in sql management studio on the table, but i'm getting syntax errors in the definition query dialog.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 20:47:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/comparing-date-is-throwing-error/m-p/684175#M30263</guid>
      <dc:creator>tnarladni</dc:creator>
      <dc:date>2019-11-06T20:47:57Z</dc:date>
    </item>
  </channel>
</rss>

