1

Possible Duplicate:
How to query all entries from past 6 hours ( datetime) in GQL?

Is there any way to select a number of records from GQL that were created within the last 48 hours? This shows exactly what I want to do, but in SQL: How to select records from last 24 hours using SQL? and variations of that don't seem to be working in GQL.

I am trying to use this query on a DateTime property and I have not set it to any particular format so it should be on the default.

Community
  • 1
  • 1
clifgray
  • 4,313
  • 11
  • 67
  • 116
  • Its not clear from your question about what value/type you are passing to your GQL query. For all date and datetime queries the argument must be a datetime object and not a string date. The system stores all datetime in UTC so you may need to take that into account down the track. – Tim Hoffman Jul 06 '12 at 07:53
  • @jozzas thanks I didn't see that one. that's right was I was looking for – clifgray Jul 06 '12 at 18:25

0 Answers0