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 <stephane.spra...@gmail.com> 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---