I am using the below code to get the month, week and year from the Date field in the MongoDB collection
ProjectionOperation project= project("Id",&q