<?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 of type &amp;quot;11 May 2021 07:08:12 GMT&amp;quot;  to datetime</title><link>https://community.appian.com/discussions/f/general/24784/convert-text-of-type-11-may-2021-07-08-12-gmt-to-datetime</link><description>Hi Team, 
 
 I have a csv in which I am receiving &amp;quot;11 May 2021 07:08:12 GMT&amp;quot; as text in one of the columns, Is there anyway to cast to Appian datetime type 
 
 Regards 
 Bihitak</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert text of type "11 May 2021 07:08:12 GMT"  to datetime</title><link>https://community.appian.com/thread/112529?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 20:39:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae0e8e7d-799e-414b-ab69-44fb839eaa2f</guid><dc:creator>Abhishek Gaddam</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert text of type "11 May 2021 07:08:12 GMT"  to datetime</title><link>https://community.appian.com/thread/95850?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 07:56:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4211a54-0115-4714-bab0-770853a629d0</guid><dc:creator>bihitakdass</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks for the information.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert text of type "11 May 2021 07:08:12 GMT"  to datetime</title><link>https://community.appian.com/thread/95849?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 07:56:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b729a9b8-4f1b-4811-8e9b-71538d72697b</guid><dc:creator>bihitakdass</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks for help its working&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert text of type "11 May 2021 07:08:12 GMT"  to datetime</title><link>https://community.appian.com/thread/95848?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 07:56:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce15385d-1bfd-4725-ac36-59127c9bc562</guid><dc:creator>bihitakdass</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks for help its working&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert text of type "11 May 2021 07:08:12 GMT"  to datetime</title><link>https://community.appian.com/thread/95841?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 23:47:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3897450-02d8-47c0-8b05-ac7e95453d49</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Try using&amp;nbsp;&lt;b&gt;parsedate &lt;/b&gt;function.&lt;/p&gt;
&lt;p&gt;This is available in plugin:&amp;nbsp;&lt;a href="/b/appmarket/posts/date-and-time-utilities"&gt;Date and Time Utilities&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Eg: parsedate(&amp;quot;11 May 2021 07:08:12 GMT&amp;quot;)&lt;/p&gt;
&lt;p&gt;Output:&amp;nbsp;&lt;/p&gt;
&lt;div class="SplitPaneLayout---pane SplitPaneLayout---secondary_pane"&gt;
&lt;div class="SplitPaneLayout---contents"&gt;
&lt;div class="TabButtonGroup---tab_group TabButtonGroup---inHeaderBodyLayout"&gt;
&lt;div class="TabButtonGroup---tab_contents_container TabButtonGroup---flush"&gt;
&lt;div class="ContentLayout---content_layout ContentLayout---padding_less"&gt;
&lt;div class="SectionLayout2---sectionLayout SectionLayout2---margin_above_none"&gt;
&lt;div class="CollapsibleElement---collapsible"&gt;
&lt;div class="SectionLayout2---section_contents SectionLayout2---margin_below_standard"&gt;
&lt;div class="ColumnArrayLayout---column_layout ColumnArrayLayout---standard_spacing ColumnArrayLayout---fixed appian-context-last-in-list"&gt;
&lt;div class="ColumnLayout---column ColumnLayout---column_padding_standard ColumnLayout---align_start ColumnLayout---top ColumnLayout---width_auto ColumnLayout---stack_when_phone appian-context-last-in-list"&gt;
&lt;div class="ContentLayout---content_layout ContentLayout---flush"&gt;
&lt;div class="SelectableTree---selectableTree SelectableTree---allow_text_highlighting"&gt;
&lt;ul class="SelectableTree---treeContainer SelectableTree---children"&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---last SelectableTreeNode---root SelectableTreeNode---allow_text_highlighting"&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;11/05/2021 07:08 GMT+00:00&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Date and Time)&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="SplitPaneLayout---separator SplitPaneLayout---horizontal SplitPaneLayout---resizable"&gt;
&lt;div class="SplitPaneLayout---default_direction SplitPaneLayout---collapse_control_parent SplitPaneLayout---parent_horizontal SplitPaneLayout---collapse_control_parent_right"&gt;&lt;/div&gt;
&lt;div class="SplitPaneLayout---default_direction SplitPaneLayout---collapse_control_parent SplitPaneLayout---parent_horizontal SplitPaneLayout---collapse_control_parent_right"&gt;&lt;img height="223" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1654127350244v2.png" width="474" alt=" " /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert text of type "11 May 2021 07:08:12 GMT"  to datetime</title><link>https://community.appian.com/thread/95839?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 18:52:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60b93632-4511-491d-99bc-95e1abf35f4c</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;As mike mentioned you can do this using combination of Appian Functions. You can try this logic it might work for your scenario. This is just a reference you may need to tweak&amp;nbsp;based on your requirement&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;a!localVariables(
  local!dateTextValue: &amp;quot;11 May 2021 07:08:12 GMT&amp;quot;,
  local!splitDateTextValues: split(&amp;quot;11 May 2021 07:08:12 GMT&amp;quot;, &amp;quot; &amp;quot;),
  local!month: displayvalue(
    local!splitDateTextValues[2],
    {&amp;quot;Jan&amp;quot;, &amp;quot;Feb&amp;quot;, &amp;quot;Mar&amp;quot;, &amp;quot;April&amp;quot;, &amp;quot;May&amp;quot;, &amp;quot;June&amp;quot;, &amp;quot;July&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;},
    {1,2,3,4,5,6,7,8,9,10,11,12},
    &amp;quot;&amp;quot;
  ),
  local!splitTime: split(local!splitDateTextValues[4], &amp;quot;:&amp;quot;),
  local!dateTimeValue: datetime(
    tointeger(local!splitDateTextValues[3]),
    tointeger(local!month),
    tointeger(local!splitDateTextValues[1]),
    tointeger(local!splitTime[1]),
    tointeger(local!splitTime[2]),
    tointeger(local!splitTime[3]),
  ),
  local!dateTimeValue
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert text of type "11 May 2021 07:08:12 GMT"  to datetime</title><link>https://community.appian.com/thread/95837?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 18:28:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca1736c8-8e4d-42ef-82c8-a248ee8e611b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Using a combination of Appian functions you could develop an Expression Rule that consumes the date text string in question and returns a valid Appian DateTime value.&amp;nbsp; It would require a bit of parsing on your part.&lt;/p&gt;
&lt;p&gt;The starting hint I have is, the &amp;quot;datetime()&amp;quot; funciton consumes &amp;quot;year, month, day, hour, minute, second&amp;quot;.&amp;nbsp; You would be able to use existing functions to break up the incoming text into parts, convert the month text to a numeric value, and pass them all into that rule.&amp;nbsp; You would want to test it against a wide variety of example inputs to make sure it returns the expected results in all such cases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>