<?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>I want to generate 24 months based on the given month and year</title><link>https://community.appian.com/discussions/f/general/30690/i-want-to-generate-24-months-based-on-the-given-month-and-year</link><description>I want to generate 24 months based on the given month and year. 
 for ex: if i gave &amp;quot;Nov-23&amp;quot; as rule input 
 i want to get next 24 months list, result something like this {Dec-23,jan-24,feb-24,mar-24,apr-24}. 
 
 can someone help to achieve this</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I want to generate 24 months based on the given month and year</title><link>https://community.appian.com/thread/122080?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 08:58:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55f3bd3a-495a-4a6c-8a15-90a1a0e28fb2</guid><dc:creator>Anitha Dharmalingam</dc:creator><description>&lt;p&gt;Thank you Sriramkaja it works!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to generate 24 months based on the given month and year</title><link>https://community.appian.com/thread/122079?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 08:52:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c835d48-c842-499e-8a54-71be564a4bc8</guid><dc:creator>Sri Ram Kaja</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/anithad2326"&gt;Anitha Dharmalingam&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Below code will help you&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!input:&amp;quot;Nov-23&amp;quot;,
  local!dummyDate:todate(&amp;quot;01-&amp;quot;&amp;amp;local!input),
  a!forEach(
    items: enumerate(24)+1,
    expression: text(todate(a!addDateTime(local!dummyDate,0,fv!item,0,0,0,0)),&amp;quot;mmm-yy&amp;quot;)
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>