<?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 Get the last day of the month in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Get-the-last-day-of-the-month/m-p/294070#M217033</link>
    <description>&lt;P&gt;Hi, please, how can I get the last day of the month of given date in NiFi?&lt;/P&gt;&lt;P&gt;Step 1 could be taking the month out of the given date&lt;/P&gt;&lt;P&gt;Step 2 getting the last day or date of the month taken from step 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 19:05:07 GMT</pubDate>
    <dc:creator>Luwi</dc:creator>
    <dc:date>2020-04-15T19:05:07Z</dc:date>
    <item>
      <title>Get the last day of the month</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-the-last-day-of-the-month/m-p/294070#M217033</link>
      <description>&lt;P&gt;Hi, please, how can I get the last day of the month of given date in NiFi?&lt;/P&gt;&lt;P&gt;Step 1 could be taking the month out of the given date&lt;/P&gt;&lt;P&gt;Step 2 getting the last day or date of the month taken from step 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 19:05:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-the-last-day-of-the-month/m-p/294070#M217033</guid>
      <dc:creator>Luwi</dc:creator>
      <dc:date>2020-04-15T19:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get the last day of the month</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Get-the-last-day-of-the-month/m-p/294076#M217037</link>
      <description>&lt;P&gt;You will need to get both the year and the month of the original date (because of the leap year considerations). In terms of how to accomplish this in NiFi one way is to use &lt;A href="https://community.cloudera.com/t5/Community-Articles/Python-Script-in-NiFi/ta-p/246406" target="_self"&gt;ExecuteScript processor&lt;/A&gt; and Python's calendar library with the function &lt;A href="https://docs.python.org/3/library/calendar.html#calendar.monthrange" target="_self"&gt;calendar.monthrange&lt;/A&gt;(year,&amp;nbsp; month) that returns the last day of month as the second argument.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 19:55:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Get-the-last-day-of-the-month/m-p/294076#M217037</guid>
      <dc:creator>aakulov</dc:creator>
      <dc:date>2020-04-15T19:55:33Z</dc:date>
    </item>
  </channel>
</rss>

