java - How to get only year from a date stored in OrientDB -
i'm working on jbake, , year part of date @ document stored.
i know can date doing
select date post and orientdb homecoming me java.util.date.
i know can add together year field, find info duplication unsatistfying.
so, possible store date, , to have year extracted through kind of sql "function" ?
typically love do
select date, {date.getyear()} post
you utilize format() function using simpledateformat syntax:
select date.format('yyyy') post java date orientdb jbake
No comments:
Post a Comment