<?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 to convert date in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615496#M213900</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32067"&gt;@hank72&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry, my error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval lastLogonTimestamp=strftime(strptime(lastLogonTimestamp,"%I:%M.%S %p, %a %m/%d/%Y"),"%m/%d/%Y %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 01 Oct 2022 13:29:24 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-10-01T13:29:24Z</dc:date>
    <item>
      <title>How to convert date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615483#M213894</link>
      <description>&lt;P&gt;How to convert Windows lastLogonTimestamp from this format 07:17.45 PM, Fri 09/30/2022 to 09/30/2022 19:17:45&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 05:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615483#M213894</guid>
      <dc:creator>hank72</dc:creator>
      <dc:date>2022-10-01T05:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615486#M213896</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32067"&gt;@hank72&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to convert a date, you have to transform it in epochtime (using strptime) and then again the output format (using strftime) in an eval command, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval lastLogonTimestamp=strftime(strptime(lastLogonTimestamp,"%H:%M.%S %p, %a %m/%d/%Y"),"%m/%d/%Y %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;for more infos see at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions#strptime.28.26lt.3Bstr.26gt.3B.2C_.26lt.3Bformat.26gt.3B.29" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions#strptime.28.26lt.3Bstr.26gt.3B.2C_.26lt.3Bformat.26gt.3B.29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions#strftime.28.26.2360.3Btime.26.2362.3B.2C.26lt.3Bformat.26gt.3B.29" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions#strftime.28.26.2360.3Btime.26.2362.3B.2C.26lt.3Bformat.26gt.3B.29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 06:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615486#M213896</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-01T06:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615487#M213897</link>
      <description>&lt;P&gt;Thank you Giuseppe, however my time is still showing up as 07:17:45 and not as 19:17:45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 06:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615487#M213897</guid>
      <dc:creator>hank72</dc:creator>
      <dc:date>2022-10-01T06:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615496#M213900</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32067"&gt;@hank72&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry, my error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval lastLogonTimestamp=strftime(strptime(lastLogonTimestamp,"%I:%M.%S %p, %a %m/%d/%Y"),"%m/%d/%Y %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 13:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615496#M213900</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-01T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615508#M213907</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; It worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 01:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615508#M213907</guid>
      <dc:creator>hank72</dc:creator>
      <dc:date>2022-10-02T01:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615521#M213910</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32067"&gt;@hank72&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 05:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-date/m-p/615521#M213910</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-02T05:40:32Z</dc:date>
    </item>
  </channel>
</rss>

