Create mongodb database using another mongodb in node red

Thanks UnborN for your reply,
I dont think aggregation will work in my case. I will explain more detail about my requirement.
I have thousands of mongoDB documents in a collection. These documents are creating each minute/hour/seconds with creation time stamp. I would like to create a new database in mongoDB with the fields like start time stamp, end time stamp, month, year for each month.

Challenge number one is, how do i find the start time stamp & end time stamp in a month from the thousands of documents.
Challenge number two is i need to find the start time stamp and end time stamp for each month like January, February, etc.
Then insert the fields to new mongoDB database.

thanks in advance