<?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: How can I convert string of numbers to date format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-string-of-numbers-to-date-format/m-p/280737#M84723</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving a field say "MyDate" | eval MyDateEpoch=strptime(MyDate,"%Y%m%d") | sort 0 MyDateEpoch
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Feb 2017 15:54:42 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-02-07T15:54:42Z</dc:date>
    <item>
      <title>How can I convert string of numbers to date format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-string-of-numbers-to-date-format/m-p/280736#M84722</link>
      <description>&lt;P&gt;I have a list of dates like below:&lt;/P&gt;

&lt;P&gt;20170201&lt;BR /&gt;
20171201&lt;BR /&gt;
20171225&lt;/P&gt;

&lt;P&gt;How can I convert this into a time value that i can sort oldest to youngest?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-string-of-numbers-to-date-format/m-p/280736#M84722</guid>
      <dc:creator>smcdonald20</dc:creator>
      <dc:date>2017-02-07T15:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert string of numbers to date format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-string-of-numbers-to-date-format/m-p/280737#M84723</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving a field say "MyDate" | eval MyDateEpoch=strptime(MyDate,"%Y%m%d") | sort 0 MyDateEpoch
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-string-of-numbers-to-date-format/m-p/280737#M84723</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-07T15:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert string of numbers to date format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-string-of-numbers-to-date-format/m-p/280738#M84724</link>
      <description>&lt;P&gt;Thank you this worked!!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-convert-string-of-numbers-to-date-format/m-p/280738#M84724</guid>
      <dc:creator>smcdonald20</dc:creator>
      <dc:date>2017-02-07T16:03:18Z</dc:date>
    </item>
  </channel>
</rss>

