Hi there,
i am new dealing with google app engine and i have a simple question:
I would like to group my results by date (Year Month Day):
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
Query q = new Query("EntityName");
q.addProjection(new PropertyProjection("date", Date.class));
q.setDistinct(true);
q.addSort("date", Query.SortDirection.DESCENDING);
I have no idea how to convert the date to the format YYMMDD that i can
group it.
Any ideas? Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.