<?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>How to Add/Subtract from Minutes from Date time</title><link>https://community.appian.com/discussions/f/general/13985/how-to-add-subtract-from-minutes-from-date-time</link><description>Hi, 
 I am trying to subtract the minutes from the date and time without considering without considering the work day time. I tried below code but its adding 1 hours respective i gave the fraction value(second parameter is number integer but i was trying</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Add/Subtract from Minutes from Date time</title><link>https://community.appian.com/thread/63469?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 06:54:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0e8a0c2-4322-4a9a-a218-6c19db6c500f</guid><dc:creator>Anupriya Sathyamoorthy</dc:creator><description>Hi Pratiksha,&lt;br /&gt;
&lt;br /&gt;
To add or subtract minutes from date and time, you can make use of time() function&lt;br /&gt;
time(hour,minute,second,millisecond)&lt;br /&gt;
now() + time(0, 5, 0, 0 ) - to add minutes&lt;br /&gt;
now() - time(0, 5, 0, 0 )  -to subtract minutes&lt;br /&gt;
&lt;br /&gt;
Using this function, we can also add/ subtract seconds &lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Anupriya&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Add/Subtract from Minutes from Date time</title><link>https://community.appian.com/thread/63443?ContentTypeID=1</link><pubDate>Sat, 15 Dec 2018 07:36:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2525723e-040f-4a3e-8eb9-fd12126ad732</guid><dc:creator>kumars0003</dc:creator><description>Hi Pratiksha,&lt;br /&gt;
&lt;br /&gt;
Please use :  (now() - (minute()*5))&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Kumar Sankalpa&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Add/Subtract from Minutes from Date time</title><link>https://community.appian.com/thread/63442?ContentTypeID=1</link><pubDate>Sat, 15 Dec 2018 07:14:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:deb3b0c1-6002-4e60-b948-9ed09a354e11</guid><dc:creator>josep</dc:creator><description>That is a good approach haven’t tried that before. I normally use something like this &lt;br /&gt;
&lt;br /&gt;
now() -intervalds(0, 5, 0)&lt;br /&gt;
&lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Add/Subtract from Minutes from Date time</title><link>https://community.appian.com/thread/63435?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 18:19:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0fe79cb-7720-47af-8ecb-ee6fe30c7874</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m guessing you need to use the minute() function.&lt;/p&gt;
&lt;p&gt;This has always worked for me:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;now() - minute() * 5&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>