You could always store the Long variant (number of milliseconds since
1/1/1970) and compare against that.
http://java.sun.com/javase/6/docs/api/java/util/Date.html#getTime%28%29

- Jason

On Sat, Aug 29, 2009 at 12:09 PM, leszek <[email protected]> wrote:

>
> You are right, but 'midomarocain'' wants to keep full date (with hours/
> min/secs) and in one context compare the full date and in the another
> context compare the same date but using the year/month/day part only.
> But, of course, it is possible to split the date to java.sql.Date and
> java.sql.Time and once compare the java.sqlDate  only and else compare
> java.sql.Date and java.sql.Time.
>
> But unfortunately GAE does not support that:
>
>
> http://code.google.com/intl/pl/appengine/docs/java/datastore/queriesandindexes.html
>
> -----------------
> Due to the way the App Engine datastore executes queries, a single
> query cannot use inequality filters (< <= >= >) on more than one
> property. Multiple inequality filters on the same property (such as
> querying for a range of values) are permitted. See Restrictions on
> Queries.
> -----------------
>
> I hope that we are on the same page now.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to