<?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>string to date convert</title><link>https://community.appian.com/discussions/f/rules/29072/string-to-date-convert</link><description>Hi All, 
 Can anyone help me convert this string into date format so that I can inject into data base 
 &amp;quot;20171222&amp;quot; 
 string format is &amp;quot;yyyyMMdd&amp;quot; I need to convert to date format yyyy-MM-dd so that it can be added to database</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: string to date convert</title><link>https://community.appian.com/thread/114782?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 11:38:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:669086e4-19eb-4c03-997b-c4f983644cc9</guid><dc:creator>bihitakdass</dc:creator><description>&lt;p&gt;Thanks Mathieu , really helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: string to date convert</title><link>https://community.appian.com/thread/114781?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 11:21:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0f91a91-5e45-415e-b66b-79d74bbddce8</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!textDate: &amp;quot;20171222&amp;quot;,
  date(
    mid(local!textDate, 1, 4),
    mid(local!textDate, 5, 2),
    mid(local!textDate, 7, 2)
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>