<?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 hours to a given date</title><link>https://community.appian.com/discussions/f/rules/24416/how-to-add-hours-to-a-given-date</link><description>We are having a start date Eg. &amp;quot;2022-04-22 18:10:03&amp;quot;(Datatype: Date &amp;amp; Time) . I need to add 5 hours to the date and should provide me result as &amp;quot;2022-04-25 14:10:03&amp;quot;. 
 Requirement: Should not include time between 19:01(7:01 pm) to 9:59(am) and week end</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to add hours to a given date</title><link>https://community.appian.com/thread/94247?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 10:14:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4662be32-5455-4c7e-9160-7bec7ed4eccb</guid><dc:creator>Dimitris Soulovaris</dc:creator><description>&lt;p&gt;Unfortunately, you have to create a new calendar and use it when you calculate the working days or hours in your functions.&lt;/p&gt;
&lt;p&gt;Here are the links on how to set up a new calendar and what are the available functions for your version:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.1/Process_Calendar_Settings.html"&gt;https://docs.appian.com/suite/help/21.1/Process_Calendar_Settings.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.1/Appian_Functions.html"&gt;https://docs.appian.com/suite/help/21.1/Appian_Functions.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add hours to a given date</title><link>https://community.appian.com/thread/94245?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 09:37:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a752a76-b587-489a-8432-85a695146633</guid><dc:creator>poorvit</dc:creator><description>&lt;p&gt;Thank you Harshit.&amp;nbsp;This code works well with the calendar working hours that is existing with Appian. Is there any way we can change the working time/dates for that particular year and hence forth. The version we are using is 21.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add hours to a given date</title><link>https://community.appian.com/thread/94226?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 06:20:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1cd1140-7221-40ac-822c-52faea719327</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;And to only add working hours&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;caladdhours(now(),5)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add hours to a given date</title><link>https://community.appian.com/thread/94225?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 06:19:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45a26314-635b-406b-9e14-ee441a555a93</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;Hello poorvi_taunk,&lt;br /&gt;well written question :)&lt;br /&gt;&lt;br /&gt;some functions which might support your case:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/22.1/fnc_date_and_time_workday.html"&gt;https://docs.appian.com/suite/help/22.1/fnc_date_and_time_workday.html&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/22.1/fnc_date_and_time_calisworktime.html"&gt;https://docs.appian.com/suite/help/22.1/fnc_date_and_time_calisworktime.html&lt;/a&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/22.1/Process_Calendar_Settings.html"&gt;https://docs.appian.com/suite/help/22.1/Process_Calendar_Settings.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/22.1/fnc_date_and_time_intervalds.html"&gt;https://docs.appian.com/suite/help/22.1/fnc_date_and_time_intervalds.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add hours to a given date</title><link>https://community.appian.com/thread/94224?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 06:13:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c62b71ad-8934-4e2d-8c75-fc7a877c547f</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;now()+intervalds(5,0,0)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>