In my OrientDB instance, entries have date
property which is stored as a java.util.Date
.
I would like to get all documents written on a given year. But I don't think writing
SELECT FROM posts WHERE date.format('yyyy')=2012
Is the best way to do. or is it ?