<?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>Find monday and friday date</title><link>https://community.appian.com/discussions/f/general/11489/find-monday-and-friday-date</link><description>Hi 
 I am currently working on version 17.3. 
 
 I have a scenario where I want to know the dates of Monday and Friday of the current week in which I am today. 
 Like for example, if today is 28th November 2017; then I want to get the dates of Monday</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/111092?ContentTypeID=1</link><pubDate>Sat, 15 Apr 2023 17:42:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6d3dead-c772-47b1-ba9a-e108a9126f05</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Thanks for pointing this out. The Appian documentation is publicly available for everybody. And even included in the expression and interface designer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/111091?ContentTypeID=1</link><pubDate>Sat, 15 Apr 2023 16:31:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d6c93e4-942e-4145-9822-7a708aa57cf4</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;What is the big deal?&lt;/p&gt;
&lt;p&gt;You can provide value to return_type parameter in weekday() function to get week days according to&amp;nbsp;your requirement and then change&amp;nbsp;the calculations in the expression accordingly.&lt;/p&gt;
&lt;p&gt;&lt;img height="32" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1681576157242v2.png" width="342" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/111090?ContentTypeID=1</link><pubDate>Sat, 15 Apr 2023 15:25:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:735ccf7a-653b-4689-843f-04d7730145d6</guid><dc:creator>chetanm6749</dc:creator><description>&lt;p&gt;what about monday to sunday&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/81536?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 12:28:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6de9e05-0b09-455d-b415-62cdd3f767d3</guid><dc:creator>Bramha</dc:creator><description>&lt;p&gt;Thank you this is helpful&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/50600?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 06:13:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:551eeaa0-3bf3-4f8e-8df1-cdb1e5e0590f</guid><dc:creator>Amit Mishra</dc:creator><description>Use below code-&lt;br /&gt;
&lt;br /&gt;
load(&lt;br /&gt;
local!currentDay:weekday(ri!date),&lt;br /&gt;
local!mondayDate:2-local!currentDay,&lt;br /&gt;
local!fridayDate:6-local!currentDay,&lt;br /&gt;
{&lt;br /&gt;
ri!date+local!mondayDate,&lt;br /&gt;
ri!date+local!fridayDate,&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/50599?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 05:01:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4728a477-0d84-4cdc-abd6-fbc2cec9b834</guid><dc:creator>komalc3</dc:creator><description>&lt;p&gt;Thanx&amp;nbsp;&lt;a href="/members/amanit"&gt;amanit&lt;/a&gt;&amp;nbsp;!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/50598?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 05:00:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6b9737e-78e1-4d99-9d26-8597c22a19fb</guid><dc:creator>komalc3</dc:creator><description>Thanx &lt;a href="/members/annap"&gt;annap&lt;/a&gt; !!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/50597?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 04:34:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47bd2324-ef3c-4993-892c-40a3c6fd0382</guid><dc:creator>amanit</dc:creator><description>You can use &amp;quot;weekday&amp;quot;, &amp;quot;today&amp;quot; functions to meet your requirement. The following is the snippet of code which I have tried.&lt;br /&gt;
load(&lt;br /&gt;
  local!currentDay:weekday(today()),&lt;br /&gt;
  local!mondayDate:2-local!currentDay,&lt;br /&gt;
  local!fridayDate:6-local!currentDay,&lt;br /&gt;
  {&lt;br /&gt;
    today()+local!mondayDate,&lt;br /&gt;
    today()+local!fridayDate&lt;br /&gt;
  }&lt;br /&gt;
  )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Find monday and friday date</title><link>https://community.appian.com/thread/50596?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 04:28:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d07b64e-a015-42f9-9738-11460d0a2e21</guid><dc:creator>annap</dc:creator><description>You could use userweekday() function for this, &lt;br /&gt;
ri!testData-(userweekday(ri!testData)-2)&lt;br /&gt;
ri!testData-(userweekday(ri!testData)-6)&lt;br /&gt;
Hope this will help you.There could be other simple ways to do this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>