<?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 text to date/datetime</title><link>https://community.appian.com/discussions/f/rules/7608/convert-text-to-date-datetime</link><description>Is there a function or rule to convert a piece of text to date or datetime? For e.g. &amp;#39;2017-01-07 19:09:29&amp;#39;. Essentially, I&amp;#39;m looking for the opposite of fn!text which will accept a piece of text and format as input. 
 OriginalPostID-212479 
 OriginalPostID</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert text to date/datetime</title><link>https://community.appian.com/thread/81094?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 20:56:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:861e1cca-1016-4e51-8df0-8b15c0fc7804</guid><dc:creator>Dylan Freadhoff</dc:creator><description>&lt;p&gt;Use the value function.&amp;nbsp; See&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.1/fnc_text_value.html"&gt;docs.appian.com/.../fnc_text_value.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert text to date/datetime</title><link>https://community.appian.com/thread/31196?ContentTypeID=1</link><pubDate>Tue, 17 May 2016 01:11:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e45dc1c9-6e64-4c45-90dc-f608411fff78</guid><dc:creator>vinitl522</dc:creator><description>Hello Vishal,&lt;br /&gt;You can save the below expression in a rule and then convert the text to date time value:&lt;br /&gt;&lt;br /&gt;=userdatetime(tointeger(left(ri!txtDate,4)),tointeger(extract(ri!txtDate,&amp;quot;-&amp;quot;,&amp;quot;-&amp;quot;)[1]),tointeger(right(extract(ri!txtDate,&amp;quot;-&amp;quot;,&amp;quot; &amp;quot;)[1],2)),tointeger(extract(ri!txtDate,&amp;quot; &amp;quot;,&amp;quot;:&amp;quot;)[1]),tointeger(extract(ri!txtDate,&amp;quot;:&amp;quot;,&amp;quot;:&amp;quot;)[1]),tointeger(right(ri!txtDate,2)))&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>