<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Expression to get Monday of each week in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89815#M40148</link>
    <description>Hi Miya,&lt;BR /&gt;&lt;BR /&gt;You can use the expression - &lt;STRONG&gt;FormatDate(Today(), "ddd")&amp;nbsp;&lt;/STRONG&gt;.&lt;BR /&gt;Get the Todays Day and then you can put a choice stage and subtract the days to get this week Monday.&lt;BR /&gt;&lt;BR /&gt;For Ex: F&lt;STRONG&gt;ormatDate(Today(), "ddd")&amp;nbsp;&lt;/STRONG&gt; Result will be &lt;STRONG&gt;Wed&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Based on the result you can go to the Wednesday flow and get the date by using expression - &lt;STRONG&gt;AddDays(Today(), -2)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Similarly for rest of the days. If you need Day also please use the FormatDate Expression.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vikash&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vikash Anand&lt;BR /&gt;Senior Software Engineer&lt;BR /&gt;Ernst and Young&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Jul 2021 05:38:00 GMT</pubDate>
    <dc:creator>Vikash011</dc:creator>
    <dc:date>2021-07-07T05:38:00Z</dc:date>
    <item>
      <title>Expression to get Monday of each week</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89814#M40147</link>
      <description>Hi,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I am supposed to create the file folders for each week with Monday date, basically bot should check for the current day and create the folder with &amp;nbsp;this week moday. Please can anyone help to get the expression for this&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Miya&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jul 2021 03:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89814#M40147</guid>
      <dc:creator>Miya</dc:creator>
      <dc:date>2021-07-07T03:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: Expression to get Monday of each week</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89815#M40148</link>
      <description>Hi Miya,&lt;BR /&gt;&lt;BR /&gt;You can use the expression - &lt;STRONG&gt;FormatDate(Today(), "ddd")&amp;nbsp;&lt;/STRONG&gt;.&lt;BR /&gt;Get the Todays Day and then you can put a choice stage and subtract the days to get this week Monday.&lt;BR /&gt;&lt;BR /&gt;For Ex: F&lt;STRONG&gt;ormatDate(Today(), "ddd")&amp;nbsp;&lt;/STRONG&gt; Result will be &lt;STRONG&gt;Wed&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Based on the result you can go to the Wednesday flow and get the date by using expression - &lt;STRONG&gt;AddDays(Today(), -2)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Similarly for rest of the days. If you need Day also please use the FormatDate Expression.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vikash&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vikash Anand&lt;BR /&gt;Senior Software Engineer&lt;BR /&gt;Ernst and Young&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jul 2021 05:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89815#M40148</guid>
      <dc:creator>Vikash011</dc:creator>
      <dc:date>2021-07-07T05:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Expression to get Monday of each week</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89816#M40149</link>
      <description>&lt;P&gt;This is the formula for calculating the Monday of a given day. Use code stage.(Language is Visual Basic)&lt;BR /&gt;Input argument is "Today", data type is Date.&lt;BR /&gt;Output argument is "Monday", data type is Date.&lt;BR /&gt;Add "mscorlib.dll" and "System.Runtime.dll" to External References.&lt;/P&gt;
&lt;P style="padding-left: 40px;"&gt;&lt;STRONG&gt;Monday = Today.AddDays((Today.DayOfWeek - 1) * -1)&lt;/STRONG&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jul 2021 06:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89816#M40149</guid>
      <dc:creator>sumire</dc:creator>
      <dc:date>2021-07-07T06:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Expression to get Monday of each week</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89817#M40150</link>
      <description>Thank You This code was great help&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Miya&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jul 2021 20:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Expression-to-get-Monday-of-each-week/m-p/89817#M40150</guid>
      <dc:creator>Miya</dc:creator>
      <dc:date>2021-07-07T20:35:00Z</dc:date>
    </item>
  </channel>
</rss>

