[wp-trac] [WordPress Trac] #18694: Improved date arguments for WP_Query

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 18 07:49:30 UTC 2011


#18694: Improved date arguments for WP_Query
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:  viper007bond
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by dd32):

 > But what about 2011-09 ? Should that be September 1st, 2011 (which is
 what strtotime() will give you) or should it be any day in September (my
 intent).

 If you want to be specific, you need to use a specific time format, simple
 :)

 That being said, 2011-09 would work in some situations, just not every
 situation. After 2011-09 wouldn't work, as it'll include sept. Before
 2011-09 would work fine though.

 To me it sounds like a reasonable "shortcut" to prevent reinventing the
 wheel, it simplifies parsing for 99% of situations and if you're specific
 in your input, it'll respect it. Some people will get caught up by it
 doing things they don't expect if they're vague in what they request.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18694#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list