<?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>Month (mmm) to Month(m)</title><link>https://community.appian.com/discussions/f/general/13155/month-mmm-to-month-m</link><description>Dear All, 
 I have local variable local!month_selected, which will be having values of month in &amp;quot;mmm&amp;quot; format. Is there any inbuild function to get the month format as &amp;quot;m&amp;quot;, 
 (E.g) Input value will be &amp;quot;AUG&amp;quot; and expected output should be &amp;quot;8&amp;quot; 
 
 Please</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59358?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 18:32:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45ab96ce-588b-40e7-ad41-1b944789701a</guid><dc:creator>Anna Pol</dc:creator><description>You can use datetext(todate(local!date),&amp;quot;M&amp;quot;)   also.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59352?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 14:25:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:52baf53b-ae05-471c-b87c-6aec3263843a</guid><dc:creator>Sunil Mohan</dc:creator><description>Thanks Amit, it help me&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59351?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 14:15:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d88ed2af-c2af-4498-88ad-39c9cc61afda</guid><dc:creator>kumars0003</dc:creator><description>Many way to achieve this. I felt, Amit&amp;#39;s code will work perfect for run-time input by user (dynamically) with simple logic . Additionally, you can validate user&amp;#39;s value (i.e. ri!mon) which should be valid mmm (Jan,Feb to Dec only).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59346?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 12:33:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a4084ab-4c41-4d74-8a12-80e13027c082</guid><dc:creator>mayurm168</dc:creator><description>It would be better if you create your own rule for the purpose.&lt;br /&gt;
Try this code...&lt;br /&gt;
&lt;br /&gt;
wherecontains(ri!input,{&amp;quot;JAN&amp;quot;,&amp;quot;FEB&amp;quot;,&amp;quot;MAR&amp;quot;,&amp;quot;APR&amp;quot;,&amp;quot;MAY&amp;quot;,&amp;quot;JUN&amp;quot;,&amp;quot;JUL&amp;quot;,&amp;quot;AUG&amp;quot;,&amp;quot;SEP&amp;quot;,&amp;quot;OCT&amp;quot;,&amp;quot;NOV&amp;quot;,&amp;quot;DEC&amp;quot;})&lt;br /&gt;
&lt;br /&gt;
here ri!input has to be of type text and it should have proper input like JAN, FEB,MAR...&lt;br /&gt;
&lt;br /&gt;
Hope this will be helpful!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59344?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 12:02:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2bf8be4-a699-4458-9a9f-e66f833927f3</guid><dc:creator>amitm9</dc:creator><description>&lt;p&gt;Hi Sunil,&amp;nbsp; your problem can be solved with exactly below code.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!date: &amp;quot;01-&amp;quot; &amp;amp; ri!mon &amp;amp; &amp;quot;-&amp;quot; &amp;amp; year(&lt;br /&gt; today()&lt;br /&gt; ),&lt;br /&gt; {&lt;br /&gt; month(todate( local!date),{})&lt;br /&gt; }&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/11/month.JPG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/month.JPG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59343?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 11:55:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2580f283-2fbf-4787-b4c2-c3c85804b787</guid><dc:creator>gauravs0002</dc:creator><description>Hi Sunil,&lt;br /&gt;
&lt;br /&gt;
You can try using below method.&lt;br /&gt;
load(&lt;br /&gt;
local!a: CONS!MONTHS&lt;br /&gt;
local!b: CONS!MONTH_VALUE&lt;br /&gt;
displayvalue(local!month_selected,,local!a,local!b,null())&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where CONS!MONTHS will have valure as {&amp;quot;JAN&amp;quot;, &amp;quot;FEB&amp;quot;.....&amp;quot;DEC&amp;quot;}&lt;br /&gt;
and CONS!MONTH_VALUE will have {1,2,3...12}&lt;br /&gt;
&lt;br /&gt;
Let me know if this works out for you&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59341?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 11:36:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e66e9931-bdfb-4cc5-b3a6-6331ee7e803f</guid><dc:creator>Shruthik</dc:creator><description>&lt;p&gt;Hi Sunil Mohan,&lt;/p&gt;
&lt;p&gt;There is no inbuilt function for your scenario as I know.&lt;/p&gt;
&lt;p&gt;One solution is we can use display value function to achieve this as mentioned below. Check if this approach works for your case.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/11/pastedimage1534764850525v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1534764850525v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59340?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 11:26:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c718714-05ff-4c04-9833-2673a1ff5023</guid><dc:creator>santhosh Kumar</dc:creator><description>Not sure if there is an inbuild function to achieve this but the following is one of the ways to do it.&lt;br /&gt;
&lt;br /&gt;
load(&lt;br /&gt;
local!a:{&amp;quot;Jan&amp;quot;,&amp;quot;Feb&amp;quot;,&amp;quot;Mar&amp;quot;,&amp;quot;Apr&amp;quot;,&amp;quot;May&amp;quot;,&amp;quot;Jun&amp;quot;,&amp;quot;Jul&amp;quot;,&amp;quot;Aug&amp;quot;,&amp;quot;Sep&amp;quot;,&amp;quot;Oct&amp;quot;,&amp;quot;Nov&amp;quot;,&amp;quot;Dec&amp;quot;},&lt;br /&gt;
local!b:{1,2,3,4,5,6,7,8,9,10,11,12},&lt;br /&gt;
displayvalue(ri!input,local!a,local!b,null())&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59335?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 10:12:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8b3a97c-aaf5-4f9f-ac31-f2788f4f1b4f</guid><dc:creator>Sunil Mohan</dc:creator><description>local!month_Selected: &amp;quot;AUG&amp;quot;,&lt;br /&gt;
month(local!month_Selected) &lt;br /&gt;
&lt;br /&gt;
- This will not work Gaurav and throws the below error.&lt;br /&gt;
&lt;br /&gt;
Expression evaluation error: Invalid variable(s) found: &amp;#39;AUG&amp;#39;.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Month (mmm) to Month(m)</title><link>https://community.appian.com/thread/59334?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 09:48:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:544ab704-2c21-4918-bb53-a81ab1eeec17</guid><dc:creator>gauravs0002</dc:creator><description>&lt;p&gt;Hi Sunil&lt;/p&gt;
&lt;p&gt;use the date function &amp;quot;&amp;quot;month.&lt;/p&gt;
&lt;p&gt;month( local!month_selected)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/11/pastedimage1534758514426v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1534758514426v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>