<?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>Parse a string from a file name and convert to date.</title><link>https://community.appian.com/discussions/f/data/21841/parse-a-string-from-a-file-name-and-convert-to-date</link><description>Hello everyone, 
 Given that I have a file name &amp;quot;Test_210908&amp;quot; is there a way for me to get &amp;quot;210908&amp;quot; then convert it to a date 09/08/2021? 
 Any help will be highly appreciated. Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Parse a string from a file name and convert to date.</title><link>https://community.appian.com/thread/85590?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 09:48:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8bbdb0fe-9e30-40b7-9aa4-99774d7f1b9d</guid><dc:creator>Sarah B.</dc:creator><description>&lt;p&gt;Wow! It actually worked. Thanks for this. &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parse a string from a file name and convert to date.</title><link>https://community.appian.com/thread/85579?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 07:27:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd07d25d-52c8-4796-aa4e-470bc0ed9aad</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I quickly created this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!fileName: &amp;quot;Test_210908&amp;quot;,
  local!splitDate: index(split(local!fileName, &amp;quot;_&amp;quot;), 2, null()),
  local!year: left(local!splitDate, &amp;quot;2&amp;quot;),
  local!month: mid(local!splitDate, 3, 2),
  local!day: right(local!splitDate, &amp;quot;2&amp;quot;),
  date(local!year, local!month, local!day)
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>