<?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>EOM using text &amp;quot;MONTH YEAR&amp;quot;</title><link>https://community.appian.com/discussions/f/general/14713/eom-using-text-month-year</link><description>Hi All, 
 I have a text in the format &amp;quot;Month Year&amp;quot; using this text i want to get end of the month . 
 Example : 
 Input(Text) : January 2019 
 Output(date) : 1/31/2019 
 This is what i could achieve so far but not sure how should i get value &amp;quot;2&amp;quot; which</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: EOM using text "MONTH YEAR"</title><link>https://community.appian.com/thread/65924?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 09:47:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bed660bf-1fdf-46a5-b973-ee388000d544</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;load(&lt;br /&gt; local!listOfMonths: {&lt;br /&gt; &amp;quot;January&amp;quot;,&lt;br /&gt; &amp;quot;February&amp;quot;,&lt;br /&gt; &amp;quot;March&amp;quot;,&lt;br /&gt; &amp;quot;April&amp;quot;,&lt;br /&gt; &amp;quot;May&amp;quot;,&lt;br /&gt; &amp;quot;June&amp;quot;,&lt;br /&gt; &amp;quot;July&amp;quot;,&lt;br /&gt; &amp;quot;August&amp;quot;,&lt;br /&gt; &amp;quot;September&amp;quot;,&lt;br /&gt; &amp;quot;October&amp;quot;,&lt;br /&gt; &amp;quot;November&amp;quot;,&lt;br /&gt; &amp;quot;December&amp;quot;&lt;br /&gt; },&lt;br /&gt; local!month: cast(&lt;br /&gt; typeof(&lt;br /&gt; 1&lt;br /&gt; ),&lt;br /&gt; wherecontains(&lt;br /&gt; stripwith(&lt;br /&gt; stripwith(&lt;br /&gt; &lt;strong&gt;&amp;quot;February 2019&amp;quot;,&lt;/strong&gt;&lt;br /&gt; right(&lt;br /&gt; &lt;strong&gt;&amp;quot;February 2019&amp;quot;,&lt;/strong&gt;&lt;br /&gt; 4&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; &amp;quot; &amp;quot;&lt;br /&gt; ),&lt;br /&gt; local!listOfMonths&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; eomonth(&lt;br /&gt; date(&lt;br /&gt; right(&lt;br /&gt; &lt;strong&gt;&amp;quot;February 2019&amp;quot;,&lt;/strong&gt;&lt;br /&gt; 4&lt;br /&gt; ),&lt;br /&gt; tointeger(&lt;br /&gt; local!month&lt;br /&gt; ),&lt;br /&gt; 1&lt;br /&gt; ),&lt;br /&gt; 0&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Create a rule with above code with one rule input (text ),where ever i have specified as bold give that rule input.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: EOM using text "MONTH YEAR"</title><link>https://community.appian.com/thread/65923?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 09:24:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:784e3015-546c-421d-82d0-e98e747cc936</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi. It&amp;#39;s not particularly elegant, but you can take the components of the incoming date and split them,&amp;nbsp;perform a lookup to swap the text month&amp;nbsp;value for a numeric month value, construct a date based upon the the numeric values you now have (defaulting the day to &amp;quot;01&amp;quot;) and then use fn!eom() to get the last day of the month for that date.&lt;/p&gt;
&lt;p&gt;Something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!listOfMonthsText: {
    &amp;quot;January&amp;quot;,
    &amp;quot;February&amp;quot;,
    &amp;quot;March&amp;quot;,
    &amp;quot;April&amp;quot;,
    &amp;quot;May&amp;quot;,
    &amp;quot;June&amp;quot;,
    &amp;quot;July&amp;quot;,
    &amp;quot;August&amp;quot;,
    &amp;quot;September&amp;quot;,
    &amp;quot;October&amp;quot;,
    &amp;quot;November&amp;quot;,
    &amp;quot;December&amp;quot;
  },
  local!listOfMonthsInteger: {
    fn!enumerate(12)+1
  },
  local!monthYearComponents: fn!split(ri!monthYear,&amp;quot; &amp;quot;),
  local!monthInteger: fn!displayvalue(local!monthYearComponents[1],local!listOfMonthsText,local!listOfMonthsInteger, null),
  fn!eomonth(fn!todate(fn!concat(local!monthInteger, &amp;quot;/01/&amp;quot;, local!monthYearComponents[2])),0)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>