diff --git a/source/includes/fact-iso-date-objects.rst b/source/includes/fact-iso-date-objects.rst index 64bdbccc4c7..f5c0cf65b55 100644 --- a/source/includes/fact-iso-date-objects.rst +++ b/source/includes/fact-iso-date-objects.rst @@ -1,8 +1,11 @@ +.. versionchanged:: 3.6 + The argument must be a valid :ref:`expression ` that resolves to one of the following: -- A :ref:`Date ` or - :ref:`Timestamp `. +- A :ref:`Date `, a + :ref:`Timestamp `, + or an :ref:`ObjectID `. - A document of the following form: @@ -24,9 +27,10 @@ The argument must be a valid :ref:`expression - The date to which the operator is applied. ```` must be a valid :ref:`expression - ` that resolves to either a - :ref:`Date ` or a - :ref:`Timestamp `. + ` that resolves to a + :ref:`Date `, a + :ref:`Timestamp `, + or an :ref:`ObjectID `. * - ``timezone`` diff --git a/source/reference/operator/aggregation/dateToParts.txt b/source/reference/operator/aggregation/dateToParts.txt index 7a945cb14ae..c91a2dea2f1 100644 --- a/source/reference/operator/aggregation/dateToParts.txt +++ b/source/reference/operator/aggregation/dateToParts.txt @@ -35,7 +35,7 @@ Definition { $dateToParts: { - 'date' : , + 'date' : , 'timezone' : , 'iso8601' : } @@ -53,10 +53,14 @@ Definition * - ``date`` - Required - - The input date for which to return parts. - ```` can be any - :ref:`expression ` that evaluates to - a BSON Date, Timestamp or ObjectID value. For more + - .. versionchanged:: 3.6 + + The input date for which to return parts. + ```` can be any + :ref:`expression ` that resolves to a + :ref:`Date `, a + :ref:`Timestamp `, or an + :ref:`ObjectID `. For more information on expressions, see :ref:`aggregation-expressions`. diff --git a/source/reference/operator/aggregation/dateToString.txt b/source/reference/operator/aggregation/dateToString.txt index 35a28b2c6b1..6a4f89defce 100644 --- a/source/reference/operator/aggregation/dateToString.txt +++ b/source/reference/operator/aggregation/dateToString.txt @@ -48,10 +48,13 @@ Definition * - ``date`` - - The date to convert to string. ```` must be a + - .. versionchanged:: 3.6 + + The date to convert to string. ```` must be a valid :ref:`expression ` that - resolves to either a :ref:`Date ` or - a :ref:`Timestamp `. + resolves to a :ref:`Date `, a + :ref:`Timestamp `, or an + :ref:`ObjectID `. * - ``timezone``