<?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>question In servicenow,how to calculate the business days in each month? in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/in-servicenow-how-to-calculate-the-business-days-in-each-month/m-p/3390833#M4858</link>
    <description />
    <pubDate>Thu, 25 Sep 2025 20:03:53 GMT</pubDate>
    <dc:creator>Sr1986</dc:creator>
    <dc:date>2025-09-25T20:03:53Z</dc:date>
    <item>
      <title>In servicenow,how to calculate the business days in each month?</title>
      <link>https://www.servicenow.com/community/community-central-forum/in-servicenow-how-to-calculate-the-business-days-in-each-month/m-p/3390833#M4858</link>
      <description />
      <pubDate>Thu, 25 Sep 2025 20:03:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/in-servicenow-how-to-calculate-the-business-days-in-each-month/m-p/3390833#M4858</guid>
      <dc:creator>Sr1986</dc:creator>
      <dc:date>2025-09-25T20:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: In servicenow,how to calculate the business days in each month?</title>
      <link>https://www.servicenow.com/community/community-central-forum/in-servicenow-how-to-calculate-the-business-days-in-each-month/m-p/3391709#M4870</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Calculating business days in ServiceNow can be achieved through a few different methods. Here are the most common and effective approaches you can try:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;Use the OOB&amp;nbsp;&lt;/SPAN&gt;GlideSchedule&lt;SPAN&gt;&amp;nbsp;API:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;This is the most powerful method as it automatically considers your company's defined schedule (working hours, holidays, etc.).&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;You can use&amp;nbsp;&lt;/SPAN&gt;GlideSchedule&lt;SPAN&gt;&amp;nbsp;to calculate the duration between two dates, excluding non-working days.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;To get the number of business days in a month, you could calculate the number of working days between the first and last day of that specific month.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;Leverage the&amp;nbsp;&lt;/SPAN&gt;Business Calendar&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;This method relies on the predefined business calendars in ServiceNow (&lt;/SPAN&gt;cmn_schedule&lt;SPAN&gt;&amp;nbsp;table). You can use the&amp;nbsp;&lt;/SPAN&gt;GlideDateTime&lt;SPAN&gt;&amp;nbsp;and calendar APIs to iterate through the days of the month and count only those days that are flagged as "working" days in the calendar.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;Create a Simple Script Include:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;For a reusable solution, you can create a Script Include that contains the logic. This script can use either of the above methods. You can then call this script from Business Rules, Flow Designer, or other places where you need the calculation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;GlideSchedule&lt;SPAN&gt;&amp;nbsp;method&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is generally recommended because it is dynamic and respects the official organizational schedule.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Muhammad Iftikhar&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;If my response helped, please mark it helpful &amp;amp; accept the solution so others can benefit as well.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 15:24:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/in-servicenow-how-to-calculate-the-business-days-in-each-month/m-p/3391709#M4870</guid>
      <dc:creator>miftikhar20</dc:creator>
      <dc:date>2025-09-26T15:24:49Z</dc:date>
    </item>
  </channel>
</rss>

