<?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 How to change the date format from 'yyyy-mm-dd' to 'mm-dd-yyyy' on the saved search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629257#M218574</link>
    <description>&lt;P&gt;I am working on the saved search not index/lookup.&lt;/P&gt;&lt;P&gt;I tried this code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| eval date=strftime(strptime(&amp;lt;fieldname&amp;gt;,"%Y-%m-%d %H:%M:%S"), "%m-%d-%Y %H:%M:%S")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but getting the blank data. Pls help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 23:55:45 GMT</pubDate>
    <dc:creator>Neel88</dc:creator>
    <dc:date>2023-02-01T23:55:45Z</dc:date>
    <item>
      <title>How to change the date format from 'yyyy-mm-dd' to 'mm-dd-yyyy' on the saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629257#M218574</link>
      <description>&lt;P&gt;I am working on the saved search not index/lookup.&lt;/P&gt;&lt;P&gt;I tried this code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| eval date=strftime(strptime(&amp;lt;fieldname&amp;gt;,"%Y-%m-%d %H:%M:%S"), "%m-%d-%Y %H:%M:%S")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but getting the blank data. Pls help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 23:55:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629257#M218574</guid>
      <dc:creator>Neel88</dc:creator>
      <dc:date>2023-02-01T23:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the date format from 'yyyy-mm-dd' to 'mm-dd-yyyy' on the saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629260#M218576</link>
      <description>&lt;P&gt;There is nothing wrong with the eval statement, so it means that your field (which I assume is not the "&amp;lt;fieldname&amp;gt;" but the name of a field) is not in that format.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval x="2023-02-02 04:02:01"
| eval date=strftime(strptime(x,"%Y-%m-%d %H:%M:%S"), "%m-%d-%Y %H:%M:%S")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 00:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629260#M218576</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-02-02T00:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the date format from 'yyyy-mm-dd' to 'mm-dd-yyyy' on the saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629262#M218578</link>
      <description>&lt;P&gt;| loadjob savedsearch="nobody:splunk_fcr_evo:last_31_days_monitoring_data"&lt;BR /&gt;| eval New_date=strftime(strptime(Date,"%Y-%m-%d %H:%M:%S"), "%m-%d-%Y %H:%M:%S")&lt;BR /&gt;| fields Date, adt, FLOW, NB1, New_date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above gives blank results in the&amp;nbsp;New_date column&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 00:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629262#M218578</guid>
      <dc:creator>Neel88</dc:creator>
      <dc:date>2023-02-02T00:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the date format from 'yyyy-mm-dd' to 'mm-dd-yyyy' on the saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629271#M218583</link>
      <description>&lt;P&gt;Please show the value of the Date field after the loadjob&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 04:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629271#M218583</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-02-02T04:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the date format from 'yyyy-mm-dd' to 'mm-dd-yyyy' on the saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629294#M218598</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neel88_0-1675326563955.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23674i7536632754D0BCDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neel88_0-1675326563955.png" alt="Neel88_0-1675326563955.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;2022-06-04&lt;/P&gt;&lt;P&gt;2022-06-05&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629294#M218598</guid>
      <dc:creator>Neel88</dc:creator>
      <dc:date>2023-02-02T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the date format from 'yyyy-mm-dd' to 'mm-dd-yyyy' on the saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629372#M218633</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;your Date is not in the same format as you are using on strptime. You haven’t have hours, minutes and seconds on it. For that reason this didn’t work. Just drop those away from format or use field which contains also those.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 16:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-date-format-from-yyyy-mm-dd-to-mm-dd-yyyy-on/m-p/629372#M218633</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-02-02T16:54:40Z</dc:date>
    </item>
  </channel>
</rss>

