<?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: Why does my date format change when downloading CSV? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617637#M214649</link>
    <description>&lt;P&gt;Hi, thanks for replying, is it possible with a |eval that you suggest me to modify the order of the date in which excel does not generate me that error?&lt;/P&gt;&lt;P&gt;I already tried to format it from excel but the problem still persists.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 03:41:23 GMT</pubDate>
    <dc:creator>splunkcol</dc:creator>
    <dc:date>2022-10-19T03:41:23Z</dc:date>
    <item>
      <title>Why does my date format change when downloading CSV?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617631#M214647</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;When I run a query I get the results as I need them in a table from Splunk but when I download the .csv file, the timestamp field changes to an incorrect date and year.&lt;/P&gt;
&lt;P&gt;Does anyone know how I can fix it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunkcol_1-1666146305374.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22077i33B7D773670CE185/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunkcol_1-1666146305374.png" alt="splunkcol_1-1666146305374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunkcol_2-1666146361854.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22078i959081556B7A3D47/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunkcol_2-1666146361854.png" alt="splunkcol_2-1666146361854.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 02:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617631#M214647</guid>
      <dc:creator>splunkcol</dc:creator>
      <dc:date>2022-10-19T02:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my date format change when downloading CSV?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617635#M214648</link>
      <description>&lt;P&gt;Looks like you're loading it into Excel, so Excel is trying to figure out what&lt;/P&gt;&lt;P&gt;Oct 15 00:03:53&amp;nbsp;&lt;/P&gt;&lt;P&gt;is. It is interpreting it as MMM YY HH:MM:SS&lt;/P&gt;&lt;P&gt;You will need to open the CSV and tell Excel what format your time is rather than allowing it to determine it automatically&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 03:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617635#M214648</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-19T03:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my date format change when downloading CSV?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617637#M214649</link>
      <description>&lt;P&gt;Hi, thanks for replying, is it possible with a |eval that you suggest me to modify the order of the date in which excel does not generate me that error?&lt;/P&gt;&lt;P&gt;I already tried to format it from excel but the problem still persists.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 03:41:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617637#M214649</guid>
      <dc:creator>splunkcol</dc:creator>
      <dc:date>2022-10-19T03:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my date format change when downloading CSV?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617639#M214651</link>
      <description>&lt;P&gt;Is your timestamp in that format or have you formatted it like that - where is your year?&lt;/P&gt;&lt;P&gt;If you have an epoch date/time, then probably the most portable date format is ISO8601, i.e.&lt;/P&gt;&lt;P&gt;YYYY-MM-DD HH:MM:SS&lt;/P&gt;&lt;P&gt;which is done with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval timestamp=strftime(_time, "%F %T")&lt;/LI-CODE&gt;&lt;P&gt;but it will depend on what time field you have to play with and whether you also have/want milliseconds&lt;/P&gt;&lt;P&gt;See strftime documentation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 04:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-date-format-change-when-downloading-CSV/m-p/617639#M214651</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-19T04:14:59Z</dc:date>
    </item>
  </channel>
</rss>

