-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: drivers
-
Labels:None
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.