<?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 turn string into date format in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615147#M106390</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply and sorry i pasted in the wrong information as an example but you are correct my message didn't have the correct format. it should have been 01021999.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Vishal&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 09:14:21 GMT</pubDate>
    <dc:creator>vishalduttauk</dc:creator>
    <dc:date>2022-09-29T09:14:21Z</dc:date>
    <item>
      <title>How to turn string into date format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615121#M106387</link>
      <description>&lt;P&gt;I have a string of data and i've created regex to break down that set into different fields. There are date values within it (start_date and end_date) but format is ddmmyyy i.e.&amp;nbsp;2901012001.How can i convert it into DD-MM-YYYY so Splunk recognises it as a date or can be shown in that date format?&lt;/P&gt;
&lt;P&gt;Ideally i'd like that to be down on ingestion. I have a props.conf and transforms.conf file for the app this sits in&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 14:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615121#M106387</guid>
      <dc:creator>vishalduttauk</dc:creator>
      <dc:date>2022-09-29T14:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn string into date format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615132#M106388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228513"&gt;@vishalduttauk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry, it isn't clear what's your fields format: you said "&lt;SPAN&gt;ddmmyyy"&amp;nbsp; but the sample you used has 10 digits (2901012001), what's the correct one?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Anyway, you have to convert it in epochtime and then in the date format you like, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| your_date=strftime(strptime(yourfield,"%d%m%Y"),"%d-%m-%Y")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615132#M106388</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-29T08:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn string into date format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615147#M106390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply and sorry i pasted in the wrong information as an example but you are correct my message didn't have the correct format. it should have been 01021999.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Vishal&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:14:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615147#M106390</guid>
      <dc:creator>vishalduttauk</dc:creator>
      <dc:date>2022-09-29T09:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn string into date format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615149#M106391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228513"&gt;@vishalduttauk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this means the the original format is "ddmmyyyy" (with 4 digits for the year), can you confirm?&lt;/P&gt;&lt;P&gt;in this case you can use my eval statement:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| your_date=strftime(strptime(yourfield,"%d%m%Y"),"%d-%m-%Y")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615149#M106391</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-29T09:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn string into date format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615150#M106392</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its the first time i am using eval so it worked after i put in | eval&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-turn-string-into-date-format/m-p/615150#M106392</guid>
      <dc:creator>vishalduttauk</dc:creator>
      <dc:date>2022-09-29T09:27:17Z</dc:date>
    </item>
  </channel>
</rss>

