AWS Security ChangesHomeSearch

AWS documentdb documentation change

Service: documentdb · 2026-03-28 · Documentation low

File: documentdb/latest/developerguide/dayOfMonth.md

Summary

Entire documentation page for the $dayOfMonth aggregation operator has been removed, including all examples and code samples

Security assessment

This change removes documentation content entirely but shows no evidence of addressing a security vulnerability, weakness, or incident. The removed content appears to be standard operator documentation with code examples. There are no security warnings, vulnerability disclosures, or security-related content being added or modified in this change.

Diff

diff --git a/documentdb/latest/developerguide/dayOfMonth.md b/documentdb/latest/developerguide/dayOfMonth.md
index dc95d5164..8b1378917 100644
--- a//documentdb/latest/developerguide/dayOfMonth.md
+++ b//documentdb/latest/developerguide/dayOfMonth.md
@@ -1 +0,0 @@
-[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#dayOfMonth "Open PDF")
@@ -3,118 +1,0 @@
-[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html)
-
-Example (MongoDB Shell)Code examples
-
-# $dayOfMonth
-
-The `$dayOfMonth` aggregation operator in Amazon DocumentDB retrieves the day of the month (from 1 to 31) for a given date. This operator is useful for grouping, filtering, or extracting the day of the month from date fields in your documents.
-
-**Parameters**
-
-  * `date expression`: The date expression can be a date field from the document, a date object, or a date string.
-
-
-
-
-## Example (MongoDB Shell)
-
-This example demonstrates how to use the `$dayOfMonth` operator to extract the day of the month from a date field in the document.
-
-**Create sample documents**
-    
-    
-    db.events.insertMany([
-      { _id: 1, eventDate: new Date("2022-01-15T12:00:00Z") },
-      { _id: 2, eventDate: new Date("2022-02-28T15:30:00Z") },
-      { _id: 3, eventDate: new Date("2022-03-01T09:45:00Z") },
-      { _id: 4, eventDate: new Date("2022-04-30T23:59:59Z") }
-    ]);
-
-**Query example**
-    
-    
-    db.events.aggregate([
-      { $project: {
-        eventDay: { $dayOfMonth: "$eventDate" }
-      }}
-    ])
-
-**Output**
-    
-    
-    [
-      { "_id" : 1, "eventDay" : 15 },
-      { "_id" : 2, "eventDay" : 28 },
-      { "_id" : 3, "eventDay" : 1 },
-      { "_id" : 4, "eventDay" : 30 }
-    ]
-
-## Code examples
-
-To view a code example for using the `$dayOfMonth` command, choose the tab for the language that you want to use:
-
-Node.js
-    
-    
-    
-    const { MongoClient } = require('mongodb');
-    
-    async function example() {
-      const client = await MongoClient.connect('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false');
-      const db = client.db('test');
-      const events = db.collection('events');
-    
-      const result = await events.aggregate([
-        { $project: {
-          eventDay: { $dayOfMonth: "$eventDate" }
-        }}
-      ]).toArray();
-    
-      console.log(result);
-      await client.close();
-    }
-    
-    example();
-
-Python
-    
-    
-    
-    from pymongo import MongoClient
-    
-    def example():
-        client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false')
-        db = client.mydatabase
-        events = db.events
-    
-        result = list(events.aggregate([
-            { "$project": {
-                "eventDay": { "$dayOfMonth": "$eventDate" }
-            }}
-        ]))
-    
-        print(result)
-        client.close()
-    
-    example()
-
-![Warning](https://d1ge0kk1l5kms0.cloudfront.net/images/G/01/webservices/console/warning.png) **Javascript is disabled or is unavailable in your browser.**
-
-To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
-
-[Document Conventions](/general/latest/gr/docconventions.html)
-
-$dateTrunc
-
-$dayOfWeek
-
-Did this page help you? - Yes
-
-Thanks for letting us know we're doing a good job!
-
-If you've got a moment, please tell us what we did right so we can do more of it.
-
-Did this page help you? - No
-
-Thanks for letting us know this page needs work. We're sorry we let you down.
-
-If you've got a moment, please tell us how we can make the documentation better.