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 google-appengine-j...@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.

Reply via email to