title: wordpress query posts by meta date value
body: <p>I am trying to query a custom post type by a custom field that contains a date. My query looks like this:</p>
  
  <pre><code>query_posts(
      array(
      'showposts' =&gt; 500, 
      'post_type' =&gt;  'holidays', 
      'post_status' =&gt; 'publish', 
      'order' =&gt; 'desc', 
      'orderby' =&gt; 'meta_value',
      'meta_query'   =&gt; array
                      (
                          array
                          (
                              'key'     =&gt; 'from_date',
                              'value'   =&gt; array( '01-01-2012', '31-12-2014' ),
                              'type'    =&gt; 'DATE', // TRIED: DATE, SIGNED, NUMBER
                              'compare' =&gt; 'BETWEEN'
                          )
                      ),
  
  
  
      )); 
  </code></pre>
  
  <p>My custom fields store the date like this: 19-11-2013</p>
  
  <p>When i run the query no results are shown, although dates within the range exist.</p>
  
  <p>Am i approaching this is the correct manor, or am i missing something?</p>