<?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>Compare datetime field with date(Fetch Duplicate request)</title><link>https://community.appian.com/discussions/f/rules/35418/compare-datetime-field-with-date-fetch-duplicate-request</link><description>I have a datetime field in DB. When user selects datetime from interface, i want to make sure that date doesn&amp;#39;t already exist in DB. Basically, i am trying to fetch duplicate requests for a day. 
 I cannot use &amp;quot;=&amp;quot; operator since field is of datetime type</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Compare datetime field with date(Fetch Duplicate request)</title><link>https://community.appian.com/thread/137822?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 16:21:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19f90225-f31a-4e00-8b7d-bf57e7769080</guid><dc:creator>venkatrea696188</dc:creator><description>[quote userid="265396" url="~/discussions/f/rules/35418/compare-datetime-field-with-date-fetch-duplicate-request"] i want to make sure that date doesn&amp;#39;t already exist in DB. Basically, i am trying to fetch duplicate requests for a day[/quote]
&lt;p&gt;And how you are comparing?? Querying data after user enters value on interface or Comparing with already fetched data?? . If you are going with first one the both approaches suggested by Yogi would work.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s second one just wrapping &lt;strong&gt;todate()&amp;nbsp;&lt;/strong&gt;around variable will do the work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare datetime field with date(Fetch Duplicate request)</title><link>https://community.appian.com/thread/137801?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 12:17:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a2d0e8d7-9fa3-4650-b816-7ec8f8ae9934</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;div&gt;Option - 1: If you are using Record Type, you can create a custom field using your existing field. Then, you can make a query on this new custom field.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Option - 2: Use Between operator&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>