Date query based on meta_key
-
I have a custom data field for my posts that is a date field. All data is formatted in mm/dd/yy or mm/dd/yyyy format. I’m trying to do a query based on the custom date field.
$mystartdate = “06/01/2009”;
$my_querystring = sprintf(“meta_key=mycustomdate&&meta_value>=%s”, $mystartdate );
$my_query->query($my_querystring);I’m getting date values from 06/12/2008 being returned…
Any ideas? Thank you in advance.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Date query based on meta_key’ is closed to new replies.