<?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 Convert datetime(in user format) extracted from field to splunk understandable format in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Convert-datetime-in-user-format-extracted-from-field-to-splunk/m-p/22362#M3419</link>
    <description>&lt;P&gt;I have time  logged in as the below format&lt;BR /&gt;
....&lt;BR /&gt;
&lt;ORDERDATE&gt;2011-11-18T00:00:00&lt;/ORDERDATE&gt;&lt;BR /&gt;
....&lt;/P&gt;

&lt;P&gt;I am able to extract that time using field extraction to get &lt;BR /&gt;
OrderDate as 2011-11-18T00:00:00&lt;/P&gt;

&lt;P&gt;Is there any way to convert that value to format&lt;/P&gt;

&lt;P&gt;2011/11/18 00:00:00&lt;/P&gt;

&lt;P&gt;The reason for this is i need to find diffrence between times, and i cannot do it if time is in format of 2011-11-18T00:00:00&lt;BR /&gt;
Please suggest me ideas to implement this.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2011 10:53:34 GMT</pubDate>
    <dc:creator>adityapavan18</dc:creator>
    <dc:date>2011-11-25T10:53:34Z</dc:date>
    <item>
      <title>Convert datetime(in user format) extracted from field to splunk understandable format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-datetime-in-user-format-extracted-from-field-to-splunk/m-p/22362#M3419</link>
      <description>&lt;P&gt;I have time  logged in as the below format&lt;BR /&gt;
....&lt;BR /&gt;
&lt;ORDERDATE&gt;2011-11-18T00:00:00&lt;/ORDERDATE&gt;&lt;BR /&gt;
....&lt;/P&gt;

&lt;P&gt;I am able to extract that time using field extraction to get &lt;BR /&gt;
OrderDate as 2011-11-18T00:00:00&lt;/P&gt;

&lt;P&gt;Is there any way to convert that value to format&lt;/P&gt;

&lt;P&gt;2011/11/18 00:00:00&lt;/P&gt;

&lt;P&gt;The reason for this is i need to find diffrence between times, and i cannot do it if time is in format of 2011-11-18T00:00:00&lt;BR /&gt;
Please suggest me ideas to implement this.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2011 10:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-datetime-in-user-format-extracted-from-field-to-splunk/m-p/22362#M3419</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2011-11-25T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert datetime(in user format) extracted from field to splunk understandable format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-datetime-in-user-format-extracted-from-field-to-splunk/m-p/22363#M3420</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | eval ReformattedOrderDate=strptime(OrderDate,"%Y-%m-%dT%H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return the corresponding epoch value for the timestamp, which should be appropriate to use when comparing times. If you want to use another time, use &lt;CODE&gt;eval&lt;/CODE&gt; again with &lt;CODE&gt;strftime&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2011 11:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-datetime-in-user-format-extracted-from-field-to-splunk/m-p/22363#M3420</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-11-25T11:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert datetime(in user format) extracted from field to splunk understandable format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Convert-datetime-in-user-format-extracted-from-field-to-splunk/m-p/22364#M3421</link>
      <description>&lt;P&gt;thanks a lot for the help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 15:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Convert-datetime-in-user-format-extracted-from-field-to-splunk/m-p/22364#M3421</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2011-11-29T15:15:12Z</dc:date>
    </item>
  </channel>
</rss>

