<?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 Help to convert date using strftime in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-to-convert-date-using-strftime/m-p/593135#M206448</link>
    <description>&lt;P&gt;Currently I have a field holding a Julian date. I am trying to convert it using &lt;FONT color="#FF00FF"&gt;strftime&amp;nbsp;&lt;FONT color="#000000"&gt;but i'm having issues.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Date = 2022.091&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Current query:&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = * | eval ConvertedDate = strftime(DATE,"%Y.%j")| table ConvertedDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Ideally I would like to get an output like 04/03/2022&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Thank you,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Marco&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 17:35:22 GMT</pubDate>
    <dc:creator>Marco_Develops</dc:creator>
    <dc:date>2022-04-08T17:35:22Z</dc:date>
    <item>
      <title>Help to convert date using strftime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-convert-date-using-strftime/m-p/593135#M206448</link>
      <description>&lt;P&gt;Currently I have a field holding a Julian date. I am trying to convert it using &lt;FONT color="#FF00FF"&gt;strftime&amp;nbsp;&lt;FONT color="#000000"&gt;but i'm having issues.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Date = 2022.091&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Current query:&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = * | eval ConvertedDate = strftime(DATE,"%Y.%j")| table ConvertedDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Ideally I would like to get an output like 04/03/2022&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Thank you,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;Marco&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-convert-date-using-strftime/m-p/593135#M206448</guid>
      <dc:creator>Marco_Develops</dc:creator>
      <dc:date>2022-04-08T17:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help to convert it using strftime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-convert-date-using-strftime/m-p/593144#M206449</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;strftime&lt;/FONT&gt; function converts an epoch timestamp (integer) into a human-readable string.&amp;nbsp; Use the &lt;FONT face="courier new,courier"&gt;strptime&lt;/FONT&gt; function to convert a datetime string into epoch form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = * 
| eval ConvertedDate = strftime(strptime(DATE,"%Y.%j"), "%m/%d/%Y")
| table ConvertedDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-convert-date-using-strftime/m-p/593144#M206449</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-04-08T17:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help to convert it using strftime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-to-convert-date-using-strftime/m-p/593146#M206450</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;This worked. Thank you for your time and explanation .&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Marco&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-to-convert-date-using-strftime/m-p/593146#M206450</guid>
      <dc:creator>Marco_Develops</dc:creator>
      <dc:date>2022-04-08T17:33:26Z</dc:date>
    </item>
  </channel>
</rss>

