<?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: Groovy - Date Format in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Groovy-Date-Format/m-p/290472#M96090</link>
    <description>&lt;P&gt;Your time format string is in neither the Groovy nor Splunk format.  Try either "yyyy-MM-dd'T'HH:mm:ss.SSSX" or "%Y-%m-%dT%H:%M:%S.%3N%z".&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 18:07:09 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-02-08T18:07:09Z</dc:date>
    <item>
      <title>Groovy - Date Format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Groovy-Date-Format/m-p/290471#M96089</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This would be very useful If I get any example.&lt;/P&gt;

&lt;P&gt;I am using Groovy to retrieve savedSearch results. My code is continuously failing because of data format.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         def etime=request.headers.get("earliestTime")
         def ltime=request.headers.get("LatestTime")
          dispatchArgs.setDispatchTimeFormat("yyyy-MM-dd'T'HH:mm:ss.mmm-05:00")
          dispatchArgs.setDispatchEarliestTime(etime)
          dispatchArgs.setDispatchLatestTime(ltime)
         Job job = savedSearch.dispatch(dispatchArgs)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting the earliestTime and LatestTime in the date-format of pattern="yyyy-MM-dd'T'HH:mm:ss.mmm-05:00".&lt;/P&gt;

&lt;P&gt;It would be helpful If you point where the above code going wrong. OR practical any example.&lt;/P&gt;

&lt;P&gt;I referenced the above code from &lt;A href="http://dev.splunk.com/view/java-sdk/SP-CAAAEKY"&gt;http://dev.splunk.com/view/java-sdk/SP-CAAAEKY&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Phanendra Meduri&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 12:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Groovy-Date-Format/m-p/290471#M96089</guid>
      <dc:creator>meduriphani</dc:creator>
      <dc:date>2017-02-08T12:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy - Date Format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Groovy-Date-Format/m-p/290472#M96090</link>
      <description>&lt;P&gt;Your time format string is in neither the Groovy nor Splunk format.  Try either "yyyy-MM-dd'T'HH:mm:ss.SSSX" or "%Y-%m-%dT%H:%M:%S.%3N%z".&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 18:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Groovy-Date-Format/m-p/290472#M96090</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-02-08T18:07:09Z</dc:date>
    </item>
  </channel>
</rss>

