<?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: Get week number for month using date in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73573#M26178</link>
    <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;For this you can write a completely new VB .NET code stage and well get the results. I can suggest you that but keeping the integrity of the above thread intact that says in particular to not use any code stage and get the result, the best approach I can think of is to create a handy excel template with you where you can have write the cell value let's say 'A1' as the date from where you need to find the week number and in the same excel you can have a formula ready before even automating it via Blue Prism, let say 'A2' with the formula as: &lt;CODE&gt;=WEEKNUM(A1)&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;So essentially what you are gonna do is, you will write the date in the excel cell 'A1' and then you will fetch the calculated formula value from the cell 'A2' to get your desired week number. This is probably the easiest way to go around!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Feb 2022 07:02:00 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2022-02-01T07:02:00Z</dc:date>
    <item>
      <title>Get week number for month using date</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73567#M26172</link>
      <description>Hi

Can anybody please help me in getting week number for particular month without using any code stage?

For Example : 02/05/2018(MM/DD/YYYY) --- Week 2</description>
      <pubDate>Thu, 22 Feb 2018 17:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73567#M26172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-22T17:52:00Z</dc:date>
    </item>
    <item>
      <title>Try to use calendars  object…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73568#M26173</link>
      <description>Try to use calendars&amp;nbsp; object&amp;nbsp; &amp;nbsp; &amp;nbsp; i am not sure about it but yes you can give it a chance ....please let me know if you get succeed in this ....</description>
      <pubDate>Fri, 23 Feb 2018 21:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73568#M26173</guid>
      <dc:creator>SachinBais</dc:creator>
      <dc:date>2018-02-23T21:11:00Z</dc:date>
    </item>
    <item>
      <title>Could you not work it out…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73569#M26174</link>
      <description>Could you not work it out mathematically, based on the which day of the week is the 1st (and which day you define as the start of the week)?</description>
      <pubDate>Mon, 26 Feb 2018 14:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73569#M26174</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-02-26T14:30:00Z</dc:date>
    </item>
    <item>
      <title>Why does this need to be…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73570#M26175</link>
      <description>Why does this need to be done&amp;nbsp;without&amp;nbsp;code stages? Code stages exist for the exact reason of extending Blue Prism functionality when built-ins aren't appropriate?</description>
      <pubDate>Tue, 27 Feb 2018 13:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73570#M26175</guid>
      <dc:creator>DavidEdwards-Da</dc:creator>
      <dc:date>2018-02-27T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Hi,…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73571#M26176</link>
      <description>Hi,
&amp;nbsp;
Please find the C# code which is working for me. You need to all system.Globalization dll and same in namespace.
&amp;nbsp;
DateTime time=Date_Input;
&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; DayOfWeek day = CultureInfo.InvariantCulture.Calendar.GetDayOfWeek(time);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (day &amp;gt;= DayOfWeek.Monday &amp;amp;&amp;amp; day</description>
      <pubDate>Tue, 06 Mar 2018 00:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73571#M26176</guid>
      <dc:creator>NikhilSaini</dc:creator>
      <dc:date>2018-03-06T00:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get week number for month using date</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73572#M26177</link>
      <description>Hi,&lt;BR /&gt;Did you get a solution for this? I am looking for the exact same solution. Any ideas?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Martin&lt;BR /&gt;Automation test analyst&lt;BR /&gt;TD&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2022 06:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73572#M26177</guid>
      <dc:creator>JohnMartin1</dc:creator>
      <dc:date>2022-02-01T06:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get week number for month using date</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73573#M26178</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;For this you can write a completely new VB .NET code stage and well get the results. I can suggest you that but keeping the integrity of the above thread intact that says in particular to not use any code stage and get the result, the best approach I can think of is to create a handy excel template with you where you can have write the cell value let's say 'A1' as the date from where you need to find the week number and in the same excel you can have a formula ready before even automating it via Blue Prism, let say 'A2' with the formula as: &lt;CODE&gt;=WEEKNUM(A1)&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;So essentially what you are gonna do is, you will write the date in the excel cell 'A1' and then you will fetch the calculated formula value from the cell 'A2' to get your desired week number. This is probably the easiest way to go around!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2022 07:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-week-number-for-month-using-date/m-p/73573#M26178</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-02-01T07:02:00Z</dc:date>
    </item>
  </channel>
</rss>

