Details
-
Task
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
Description
Please document how to project day/month/year from an ISODate field using the Java driver. The customer attached to this docs ticket had difficulty figuring out how to do this and so did I![]()
For example:
Document project = Document.parse("{$project: {year: {$dateToString: {format: '%Y', date: '$Events.eventTime'}}}}");
|
Thanks,
Angela.