<?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: convert the date in required format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/convert-the-date-in-required-format/m-p/188965#M54454</link>
    <description>&lt;P&gt;Try this. Assuming your field name is date.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval date=strptime(date,"%e-%b-%y") | eval date=strftime(date,"%d-%b-%y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Mar 2014 17:09:53 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-03-14T17:09:53Z</dc:date>
    <item>
      <title>convert the date in required format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/convert-the-date-in-required-format/m-p/188964#M54453</link>
      <description>&lt;P&gt;Hai i have a field which has dates&lt;/P&gt;

&lt;P&gt;example : 1-Oct-13&lt;BR /&gt;
          4-Dec-13&lt;BR /&gt;
          28-Oct-13&lt;/P&gt;

&lt;P&gt;I have to convert to below format&lt;/P&gt;

&lt;P&gt;01-Oct-13&lt;BR /&gt;
04-Oct-13 and so on....&lt;/P&gt;

&lt;P&gt;Please help me &lt;/P&gt;

&lt;P&gt;Thanking you in advance&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/convert-the-date-in-required-format/m-p/188964#M54453</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2014-03-14T17:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: convert the date in required format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/convert-the-date-in-required-format/m-p/188965#M54454</link>
      <description>&lt;P&gt;Try this. Assuming your field name is date.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval date=strptime(date,"%e-%b-%y") | eval date=strftime(date,"%d-%b-%y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/convert-the-date-in-required-format/m-p/188965#M54454</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-14T17:09:53Z</dc:date>
    </item>
  </channel>
</rss>

