<?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>subtract</title><link>https://community.appian.com/discussions/f/general/29291/subtract</link><description>Hi, 
 
 i&amp;#39;ll give any date it has to subtract with today and give me number of days difference 
 
 ex: inputdate -today= no of days difference, 04/07/2023- today = 7 days 
 which functions i can use to achieve this? suggest me</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: subtract</title><link>https://community.appian.com/thread/122418?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 07:19:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:866ba7cf-7735-4847-9930-cf3e78ead98f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There are no snakes in Appian! And no British comedians!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: subtract</title><link>https://community.appian.com/thread/122413?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 06:39:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9192b56d-623e-43a4-97a9-8bf86dcf7198</guid><dc:creator>margaretr9692</dc:creator><description>&lt;p&gt;@&lt;a href="https://trafficjam3d.com"&gt;traffic jam 3d&lt;/a&gt;&amp;nbsp;You can use the datedif() function in Python&amp;#39;s datetime module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: subtract</title><link>https://community.appian.com/thread/115990?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 09:51:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a647686e-2c61-482c-9412-472515c343e5</guid><dc:creator>KM</dc:creator><description>&lt;p&gt;this i have tried already it&amp;#39;s giving return with intervals...i just want only number of days&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;abs function will give number of days in return&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: subtract</title><link>https://community.appian.com/thread/115986?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 09:19:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b69d7168-75b0-4a1d-b47c-a150c3226d1a</guid><dc:creator>Shanmathi Ponnusamy</dc:creator><description>&lt;p&gt;Or we can use `abs` to&amp;nbsp;not return negative numbers.&lt;/p&gt;
&lt;p&gt;abs(ri!date1-ri!date2)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: subtract</title><link>https://community.appian.com/thread/115985?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2023 09:15:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59c9db8f-08aa-40f4-b900-b1dfbccb49dc</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;No need to use a function for this, just use minus(-) operator between the dates.&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;tointeger(ri!input - today())&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Make sure that both the inputs are of Date type.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>