http://www.datanucleus.org/products/accessplatform_2_0/jdo/jdoql.htmlExample
3 is the right answer for you.
It might be better if you could go through document to have an understanding
on its concepts first.
Thanks.

On Wed, Apr 28, 2010 at 1:36 AM, Vinay <[email protected]> wrote:

> Hi,
> I am new to Java and App engine. I am trying to query data that has
> been written to the datastore using JDO. I am getting an exception
> when I try to filter on a Date property:
>
>            Query query = pm.newQuery(DataPoint.class);
>            query.setFilter(" m_tradeDateTime > DATETIME(2010, 10,1,
> 0, 0,0)");
>
>                List<DataPoint> dp = (List<DataPoint>)query.execute();
>
> m_tradeDateTime  is of type Date. DATE or DATETIME fails when the
> query is parsed. What is the right way of specifying a date value in a
> filter? Filtering on a string property works correctly, not sure what
> is the expected format for specifying a value for a Date type
> property.
>
> Thanks,
> -Vinay
>
> --
> 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]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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