<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Time format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131532#M184547</link>
    <description>&lt;P&gt;the date format that you are getting is an EPOCH time you can convert it by&lt;/P&gt;

&lt;P&gt;to__char(date_field, 'DD-MON-YYYY HH24:MI:SS')&lt;/P&gt;

&lt;P&gt;ex:SELECT to__char(date_filed, 'dd-mm-yyyy hh24:mi:ss AM') FROM table_name&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:23:21 GMT</pubDate>
    <dc:creator>harshavrath</dc:creator>
    <dc:date>2020-09-28T16:23:21Z</dc:date>
    <item>
      <title>Time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131530#M184545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am using DB connect to fetch a table from the database which the table was imported as an Excel to the database. But, the problem is the time is showing like 1396760400.000 and tried different commands like convert, replace and other ones but the date is not changing. Also, when I tried just to rename the header of the field, I could not either. So, I have no idea what the problem is. &lt;BR /&gt;
Idea/ suggestion would be great &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 22:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131530#M184545</guid>
      <dc:creator>hxa27</dc:creator>
      <dc:date>2014-04-14T22:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131531#M184546</link>
      <description>&lt;P&gt;try of &lt;CODE&gt;convert ctime(datetime_column)&lt;/CODE&gt; is working?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 05:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131531#M184546</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-15T05:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131532#M184547</link>
      <description>&lt;P&gt;the date format that you are getting is an EPOCH time you can convert it by&lt;/P&gt;

&lt;P&gt;to__char(date_field, 'DD-MON-YYYY HH24:MI:SS')&lt;/P&gt;

&lt;P&gt;ex:SELECT to__char(date_filed, 'dd-mm-yyyy hh24:mi:ss AM') FROM table_name&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131532#M184547</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2020-09-28T16:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131533#M184548</link>
      <description>&lt;P&gt;try this even this works&lt;/P&gt;

&lt;P&gt;fieldformat new_date=strftime(dat_field,"%d-%m-%Y %H: %M: %S")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131533#M184548</guid>
      <dc:creator>harshavrath</dc:creator>
      <dc:date>2020-09-28T16:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131534#M184549</link>
      <description>&lt;P&gt;Non of these worked not because they are wrong but I am not able to change anything in the particular column. Idea in how to fix this issue&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 14:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131534#M184549</guid>
      <dc:creator>hxa27</dc:creator>
      <dc:date>2014-04-15T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131535#M184550</link>
      <description>&lt;P&gt;you wont be able to get in normal sql query. you need to do it splunk query. What is the database you are using?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-format/m-p/131535#M184550</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-15T15:22:44Z</dc:date>
    </item>
  </channel>
</rss>

