<?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: Python how to  compare Date Fields in MakeFeatureLayer in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685109#M53037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all!!&amp;nbsp; Removing the &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; \n\n" fixed the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 17:51:58 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2016-03-01T17:51:58Z</dc:date>
    <item>
      <title>Python how to  compare Date Fields in MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685106#M53034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I exported a ModelBuilder to Python where there is a FeatureLayer where I compare 2 Date Fields and it works fine in Model Builder but in Python it displays the following error message:&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000230: Failed selecting with MODDATE &amp;lt;&amp;gt; MODDATE_1 \n\n&lt;/P&gt;&lt;P&gt;Failed to execute (MakeFeatureLayer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the python code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Make Feature Layer (5)&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management(Agreement, Agreement_Layer1, "MODDATE &amp;lt;&amp;gt; MODDATE_1 &lt;A href="https://community.esri.com/"&gt;\\n\\n&lt;/A&gt;", "", "OBJECTID OBJECTID .... ")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 16:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685106#M53034</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2016-03-01T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python how to  compare Date Fields in MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685107#M53035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried it without the new line codes (\n\n) ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;"MODDATE &amp;lt;&amp;gt; MODDATE_1"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685107#M53035</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2016-03-01T17:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python how to  compare Date Fields in MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685108#M53036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you remove the "&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; \n\n", does it work? The \n refers to additional &amp;lt;Enter&amp;gt; you entered in the expression. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;The alternative is to run the tool manually and copy the Python snippet from the Results window:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/executing-tools/using-the-results-window.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/executing-tools/using-the-results-window.htm"&gt;Using the Results window—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685108#M53036</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-03-01T17:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Python how to  compare Date Fields in MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685109#M53037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all!!&amp;nbsp; Removing the &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt; \n\n" fixed the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-how-to-compare-date-fields-in/m-p/685109#M53037</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2016-03-01T17:51:58Z</dc:date>
    </item>
  </channel>
</rss>

