<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Date Comparison</title><link>https://community.appian.com/discussions/f/rules/14196/date-comparison</link><description>I am trying to compare date in expression rule but i am getting very strange error in that. 
 Kindly help me out in this. 
 ri!date - &amp;quot;2/24/2018&amp;quot; type Date 
 
 error : Expression evaluation error at function a!queryEntity [line 11]: Cannot apply operator</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Date Comparison</title><link>https://community.appian.com/thread/64170?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 18:17:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b250fce-81f2-4dec-9936-881c3e718493</guid><dc:creator>Joubin Izadi</dc:creator><description>You would need to change the operator. Try using &amp;quot;in&amp;quot; to see if the database date is in the list of dates you&amp;#39;ve passed in.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date Comparison</title><link>https://community.appian.com/thread/64168?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 18:12:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9de18d99-63f1-4e24-9559-d92688552bda</guid><dc:creator>sauravk</dc:creator><description>Thanks . Its working now. But if i have multiple dates i mean if i pass array of dates as rule input variable. Then will this work ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date Comparison</title><link>https://community.appian.com/thread/64167?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 17:58:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:249390a3-b4be-4855-b173-84d392e41911</guid><dc:creator>Joubin Izadi</dc:creator><description>&lt;p&gt;The error suggests a mismatch between types.&lt;/p&gt;
&lt;p&gt;What is the type of the field &amp;quot;date&amp;quot; in the CDT for that entity?&lt;/p&gt;
&lt;p&gt;What is the type of the rule input ri!date? Is it possibly an &lt;em&gt;array &lt;/em&gt;of Dates...? It&amp;#39;s calling out the value of {2018-02-24} as type 107 which is &amp;quot;List of Date with Timezone&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;very similar issue here but with different types:&amp;nbsp;&lt;a href="https://community.appian.com/discussions/f/rules/7880/i-am-creating-a-query-entity-rule-where-i-need-to-compare-one-of-my-ri-value-whi"&gt;community.appian.com/.../i-am-creating-a-query-entity-rule-where-i-need-to-compare-one-of-my-ri-value-whi&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date Comparison</title><link>https://community.appian.com/thread/64166?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 17:54:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4f79b48-5138-4437-b276-12d290ca7937</guid><dc:creator>Carlos Santander</dc:creator><description>Type 107 is a List of Date, so it looks like you just need to ensure ri!date is actually a single date and not multiple.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>