<?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>convert YYYYMM to Date</title><link>https://community.appian.com/discussions/f/rules/13165/convert-yyyymm-to-date</link><description>Hi, 
 I am trying to convert a date in yearmonth format to regular date . The day will be always first of the month 
 
 that is input is 201809(text) output is 01/09/2018(date ) 
 
 
 
 i am using the above rule . it works fine for all the dates except</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: convert YYYYMM to Date</title><link>https://community.appian.com/thread/59399?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 18:21:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3a28b8b-ae67-415f-9457-8376cc56e263</guid><dc:creator>Sumeet Khare</dc:creator><description>&lt;p&gt;Its a number right, try this&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;=load(&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;local!month: fn!mod(ri!yearMonth, 100),&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;local!year: fn!tointeger(ri!yearMonth / 100),&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;{&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp;local!month,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp;local!year&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>