<?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>How can i get the name of the past month?</title><link>https://community.appian.com/discussions/f/general/26138/how-can-i-get-the-name-of-the-past-month</link><description>Hello i&amp;#39;m just trying to get the name of the past month, im using this code: 
 
 proper(text(today(), &amp;quot;MMMM&amp;quot;)) 
 
 But it only generates the name of the current month 
 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can i get the name of the past month?</title><link>https://community.appian.com/thread/105268?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 11:52:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf177e48-9049-4b69-9504-00e80d09f564</guid><dc:creator>skk3042</dc:creator><description>&lt;p&gt;text(&lt;br /&gt; a!subtractDateTime( startDateTime: today(), months: 1),&lt;br /&gt; &amp;quot;mmmm&amp;quot;&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get the name of the past month?</title><link>https://community.appian.com/thread/102462?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 19:56:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21bab6bd-0085-4b33-854c-cc4e6b1924c9</guid><dc:creator>Mario Vargas</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks a lot!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get the name of the past month?</title><link>https://community.appian.com/thread/102461?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 19:56:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97e6cba9-5197-4fbf-8bd6-04c2869b1d10</guid><dc:creator>Mario Vargas</dc:creator><description>&lt;p&gt;Thanks a lot!&lt;/p&gt;
&lt;div style="left:-248px;position:absolute;top:-20px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get the name of the past month?</title><link>https://community.appian.com/thread/102460?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 19:18:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c69a4d8-034c-4ff8-a5f2-626b058de4f1</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;Hi we can use &lt;a href="https://docs.appian.com/suite/help/21.4/fnc_date_and_time_eomonth.html"&gt;eomonth()&lt;/a&gt; function&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;text(
  eomonth(
    now(),
    -1
  ),
  &amp;quot;MMMM&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get the name of the past month?</title><link>https://community.appian.com/thread/102459?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 19:17:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4825993a-21e4-4705-ab44-3887d7ca96c5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Months are admittedly a little tricky to deal with using strictly OOB functionality.&lt;/p&gt;
&lt;p&gt;If you have the Date and Time Utilities plug-in installed (which there&amp;#39;s no reason not to, IMHO), you could utilize the &amp;quot;subtractmonths()&amp;quot; function.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;text(subtractmonths(now(), 1), &amp;quot;MMMM&amp;quot;)&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1664997500343v1.png" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;Edit: &lt;span style="text-decoration:underline;"&gt;Ujjwal&lt;/span&gt;&amp;nbsp;gives a good solution below&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/2b07.svg" title="Arrow down"&gt;&amp;#x2b07;&lt;/span&gt;, using the OOB function &amp;quot;&lt;em&gt;eomonth()&lt;/em&gt;&amp;quot;.&amp;nbsp; An additional OOB-only approach would be to just use the month() function to get the month # you want, assemble a fake &amp;quot;date value&amp;quot; using that, and use that to produce the text() output desired:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1664997761076v1.png" /&gt;(&lt;em&gt;edit2&lt;/em&gt;: this works fine for months other than January, so a manual check would need to be added to check for &amp;quot;0&amp;quot;, though if anyone has a code-minimal trick for this then i&amp;#39;m curious!&amp;nbsp; i guess it&amp;#39;s a good reason to use &amp;quot;subtractMonths()&amp;quot; or &amp;quot;eoMonth()&amp;quot; though.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>