<?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>Check if date given is between 2 dates range</title><link>https://community.appian.com/discussions/f/new-to-appian/19225/check-if-date-given-is-between-2-dates-range</link><description>Hi All, 
 Is there any function in Appian to check if date exist between 2 dates period? 
 Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Check if date given is between 2 dates range</title><link>https://community.appian.com/thread/75655?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 02:30:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7b347bd-b5c8-4ad8-89dd-80e6b588c4e8</guid><dc:creator>legotx</dc:creator><description>&lt;p&gt;This routine should return either true or false. &amp;quot;date1&amp;quot; and &amp;quot;date2&amp;quot; are just examples. On this case, it will return true.&lt;/p&gt;
&lt;p&gt;The last line, should be the snippet that you can use.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;with (
  local!date1: today(),
  local!date2: today() + 2,

  tointeger(local!date2 - local!date1) &amp;gt; 0
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if date given is between 2 dates range</title><link>https://community.appian.com/thread/75279?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 03:29:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ccccf5d2-4786-4afd-84f5-61c5327304bf</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;How about something as simple as &lt;em&gt;&lt;strong&gt;and( ri!myDate &amp;gt; ri!startDate, ri!myDate &amp;lt; ri!endDate )&lt;/strong&gt; &lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>