I do this quite a bit in my app.
Basically I make a query like this:
Query q = pm.newQuery(MyClass.class, "myDate >= :firstDateParam &&
myDate <= :secondDateParam");
Map<String, Object> params = new HashMap<String, Object>();
params.put("firstDateParam", startDate);
params.put("secondDateParam", endDate);
q.executeWithMap(params);I typed this on my phone, so I may have bitchered some meathod signatures, but this is about what I am doing. Hope it helps. On Sep 18, 12:44 am, sproooooz <[email protected]> wrote: > I am trying to write a JDO query where an entity field java.util.Date > "DATEFIELD" is between 2 others java.util.Date parameters...but can > not succeed > Has anybody tried this before? > > that would be a big help.... > > Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
