<?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>Standard timestamp in log files.</title><link>https://community.appian.com/discussions/f/general/15035/standard-timestamp-in-log-files</link><description>I am using Appian 18.4 on prem. I am using the Log Reader plugin to read data from log files and write the data into database tables. I want for the timestamp columns to be of type Date and Time. For example, the log file site_usage.csv contains the timestamp</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67887?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 11:03:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:419b3a98-c123-4bb0-98f9-c6f13e310ce2</guid><dc:creator>nikin</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are having the same issue. Is there a way around this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67328?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 17:48:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5391762f-4365-407c-a9ce-1405053d73e8</guid><dc:creator>erickp</dc:creator><description>&lt;p&gt;Also, I tried to format&amp;nbsp;&lt;span&gt;&amp;quot;12 Jun 2019 13:55:43 GMT&amp;quot; using parsedate() but it didn&amp;#39;t work.&amp;nbsp;I tried without the GMT and it worked. This presents another&amp;nbsp;challenge now because I won&amp;#39;t know if the particular log file has timezone or not in the timestamp column.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67327?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 17:41:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5a67055-68b9-4023-8de4-c76977a057db</guid><dc:creator>erickp</dc:creator><description>&lt;p&gt;I will give this a try and see if it works.My only concern is that it says it is only supported until Appian 17.3. Any thoughts on that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67324?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 17:13:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea67460e-ddd8-4b4a-8039-c519c340b46b</guid><dc:creator>Amitkumar</dc:creator><description>&lt;p&gt;parseDate() from &lt;a title="Date and Time Utilities" href="/b/appmarket/posts/date-and-time-utilities"&gt;Date and Time Utilities&lt;/a&gt;&amp;nbsp;should help you. It supports many input date formats and returns the output as Date and Time.&lt;/p&gt;
&lt;p&gt;I hope this function will future proof your solution as supported list of input date formats is comprehensive not just limited to timestamps but other possible date formats. Check the plug-in documentation.&lt;/p&gt;
&lt;p&gt;See below screenshot for function description, input, and output.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1560445476727v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can apply the parseDate() function on timestamp values before inserting data into database.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67298?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 12:52:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:434a3f3f-69ef-43bd-ae9f-bbb4054dcf0f</guid><dc:creator>erickp</dc:creator><description>&lt;p&gt;Thanks  I am interested to know what others think as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67279?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 21:25:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81c69060-c81c-4763-8829-ebe5f2345ced</guid><dc:creator>ChristineLHutchison</dc:creator><description>&lt;p&gt;Create a view&amp;nbsp;and do a to_date on the column in the where.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67278?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 21:24:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:861c52bd-0ad0-4837-a82d-aca021093f6a</guid><dc:creator>erickp</dc:creator><description>&lt;p&gt;What if I want to query: give me the log rows from the past 6 months? How would I do that if the table timestamp columns are text?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standard timestamp in log files.</title><link>https://community.appian.com/thread/67277?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 21:14:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bcc66e3d-0097-4f2a-89bc-795c3e5eb300</guid><dc:creator>ChristineLHutchison</dc:creator><description>&lt;p&gt;So, bullet proof is a hard goal to achieve :-)&lt;/p&gt;
&lt;p&gt;However, if you just always store the date/time in a char field in the DB, you can create DB functions or Appian expression rules to apply formatting based on what text comes back. Doesn&amp;#39;t make it bullet proof, but makes it more &amp;#39;adaptable&amp;#39; to storing any value and then formatting to display as desired. Just a thought....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>