<?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>Getting the difference (in days) between two dates</title><link>https://community.appian.com/discussions/f/user-interface/18735/getting-the-difference-in-days-between-two-dates</link><description>Dear all, 
 Please how can I get the difference (in days) between two dates? For example my first date is &amp;#39;05/17/020&amp;#39; and my second date is &amp;#39;05/20/2020&amp;#39;. What&amp;#39;s the SAIL expression that gives me the difference in days - 3? 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Getting the difference (in days) between two dates</title><link>https://community.appian.com/thread/73734?ContentTypeID=1</link><pubDate>Fri, 01 May 2020 14:48:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d941d106-27c7-4dfb-b241-e93ffb86b667</guid><dc:creator>nanfak</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting the difference (in days) between two dates</title><link>https://community.appian.com/thread/73733?ContentTypeID=1</link><pubDate>Fri, 01 May 2020 14:15:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72280d80-7aff-40ce-9f77-973325db481e</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;You want to use the tointervalds function&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;tointeger(tointervalds(today()) - tointervalds(today()-5))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>