<?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: issue with dropdown containing month and year value in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/issue-with-dropdown-containing-month-and-year-value/m-p/355797#M5699</link>
    <description>&lt;P&gt;Thanks a lot.. It worked!! &lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 10:56:55 GMT</pubDate>
    <dc:creator>k_harini</dc:creator>
    <dc:date>2017-03-15T10:56:55Z</dc:date>
    <item>
      <title>issue with dropdown containing month and year value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/issue-with-dropdown-containing-month-and-year-value/m-p/355795#M5697</link>
      <description>&lt;P&gt;I have to produce Jan-2017 Feb-2017 in the dropdown&lt;BR /&gt;
search query |eval datetime = strftime(strptime(mydate,"%m/%d/%Y"),"%b-%Y")|dedup datetime|table datetime|sort - datetime&lt;/P&gt;

&lt;P&gt;I get Feb and Jan which is sorted by alphabetical order. How to sort with month order. please help.  Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 08:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/issue-with-dropdown-containing-month-and-year-value/m-p/355795#M5697</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2017-03-15T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dropdown containing month and year value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/issue-with-dropdown-containing-month-and-year-value/m-p/355796#M5698</link>
      <description>&lt;P&gt;You probably have to use the numerical format for the month to sort, and then add the text version afterward. Try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search query&amp;gt;
| eval datetime_num = strftime(strptime(mydate,"%m/%d/%Y"),"%m-%Y")
| dedup datetime_num
| table mydate datetime_num
| sort - datetime_num
| eval datetime = strftime(strptime(mydate,"%m/%d/%Y"),"%b-%Y")
| fields  datetime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2017 10:18:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/issue-with-dropdown-containing-month-and-year-value/m-p/355796#M5698</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-03-15T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: issue with dropdown containing month and year value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/issue-with-dropdown-containing-month-and-year-value/m-p/355797#M5699</link>
      <description>&lt;P&gt;Thanks a lot.. It worked!! &lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 10:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/issue-with-dropdown-containing-month-and-year-value/m-p/355797#M5699</guid>
      <dc:creator>k_harini</dc:creator>
      <dc:date>2017-03-15T10:56:55Z</dc:date>
    </item>
  </channel>
</rss>

