View Full Version : How to filter on dates?

7 Oct 2007, 12:04 PM
I'm trying to get an object from a store, using the query method, where the field is of type Date. But if I passed in a Date object the date is converted to a string and doesn't match. I have tried to set the field as id. When I do that the keys are the dates as string (the objects in my store is from a JSON string where the dates are strings in the format d-m-Y) but how do I use that?
My query:
this.store.query("ShowPeriod", date, true)
I have attached a screen dumb from Firebug that shows the keys.

Regards, Jon.

7 Oct 2007, 12:17 PM
OK, it works now by using the getById method. I didn't see that but the question still remain for other queries.