<?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 string to datetime mysql</title><link>https://community.appian.com/discussions/f/general/24886/convert-string-to-datetime-mysql</link><description>HI Team, 
 Can anyone guide me how to convert &amp;quot; 11 May 2021 07:08:12 GMT&amp;quot; of type varchar to DateTime type in mysql. 
 
 I have a column of timestamp of type varchar as I am dumping data directly from csv. 
 
 I need to do some group by and min , max</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert string to datetime mysql</title><link>https://community.appian.com/thread/96316?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 14:36:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:acb6c02c-2059-4054-931d-17c516eb0fc8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I assume there might be SQL functionality that can handle this, though it might be quite a bit harder.&amp;nbsp; That question might be best answered by looking into external SQL reference sites, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert string to datetime mysql</title><link>https://community.appian.com/thread/96312?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 13:52:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ebdceda6-83eb-481d-9399-ffa0c62d9e25</guid><dc:creator>bihitakdass</dc:creator><description>&lt;p&gt;Thanks , I want to do at DB side as I am using CSV import smart service to import all the data in siting format&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert string to datetime mysql</title><link>https://community.appian.com/thread/96310?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 12:46:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f44317f-64aa-48e0-a274-f7799f111d67</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you clarify - do you need to do this conversion in SQL itself or can it be converted in Appian before being passed to the DB?&amp;nbsp; If it can be parsed in Appian, it would be pretty straightforward to build a parser rule that breaks up the timestamp string into component parts and feeds it into a rule like &amp;quot;datetime()&amp;quot;, and returns an Appian Date/Time value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert string to datetime mysql</title><link>https://community.appian.com/thread/96308?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 12:26:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e21a9500-6dc4-45ab-b4aa-7beb5854cf37</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi, You can use convert() function probably once you are doing in db.one more thing you can do is, Before dumping it to db table , format the column as well into date time from string. In this case you wont have to convert in DB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>