@@ -1018,102 +1018,3 @@ New Control Flow Expression
1018
1018
1019
1019
- ``"Did not match"``
1020
1020
1021
- New Date Aggregation Operators
1022
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1023
-
1024
- .. COMMENT to DOCSTeam -- will also need to update existing $dateToString operator to support formatting of isodates "%G", "%V", and "%u" t
1025
-
1026
- .. expression:: $isoDayOfWeek
1027
-
1028
- Returns the ISO 8601 weekday number, ranging from ``1`` (for Monday)
1029
- to ``7`` (for Sunday).
1030
-
1031
- :expression:`$isoDayOfWeek` has the following :ref:`operator
1032
- expression syntax <agg-quick-ref-operator-expressions>`:
1033
-
1034
- .. code-block:: javascript
1035
-
1036
- { $isoDayOfWeek: <date expression> }
1037
-
1038
- The argument can be any valid :ref:`expression
1039
- <aggregation-expressions>` that resolves to a date or timestamp.
1040
-
1041
- .. list-table::
1042
- :header-rows: 1
1043
- :widths: 95 5
1044
-
1045
- * - Example
1046
- - Results
1047
-
1048
- * - ``{ $isoDayOfWeek: new Date("2016-01-01") }``
1049
- - ``5``
1050
-
1051
- .. seealso:: :expression:`$dayOfWeek`
1052
-
1053
- .. expression:: $isoWeek
1054
-
1055
- Returns the ISO 8601 week number, which can range from ``1`` to
1056
- ``53``. Week numbers start at ``1`` with the week (Monday through
1057
- Sunday) that contains the year's first Thursday.
1058
-
1059
- :expression:`$isoWeek` has the following :ref:`operator
1060
- expression syntax <agg-quick-ref-operator-expressions>`:
1061
-
1062
- .. code-block:: javascript
1063
-
1064
- { $isoWeek: <date expression> }
1065
-
1066
- The argument can be any valid :ref:`expression
1067
- <aggregation-expressions>` that resolves to a date or timestamp.
1068
-
1069
- .. list-table::
1070
- :header-rows: 1
1071
- :widths: 95 5
1072
-
1073
- * - Example
1074
- - Results
1075
-
1076
- * - ``{ $isoWeek: new Date("2015-01-01") }``
1077
- - ``1``
1078
-
1079
- * - ``{ $isoWeek: new Date("2016-01-01") }``
1080
- - ``53``
1081
-
1082
- * - ``{ $isoWeek: new Date("2016-01-04") }``
1083
- - ``1``
1084
-
1085
- .. seealso:: :expression:`$week`
1086
-
1087
- .. expression:: $isoWeekYear
1088
-
1089
- Returns the ISO 8601 year number, where the year starts with the
1090
- Monday of week 1 (ISO 8601) and ends with the Sundays of the last
1091
- week (ISO 8601)
1092
-
1093
- :expression:`$isoWeekYear` has the following :ref:`operator
1094
- expression syntax <agg-quick-ref-operator-expressions>`:
1095
-
1096
- .. code-block:: javascript
1097
-
1098
- { $isoWeekYear: <date expression> }
1099
-
1100
- The argument can be any valid :ref:`expression
1101
- <aggregation-expressions>` that resolves to a date or timestamp.
1102
-
1103
- .. list-table::
1104
- :header-rows: 1
1105
- :widths: 95 5
1106
-
1107
- * - Example
1108
- - Results
1109
-
1110
- * - ``{ $isoWeekYear: new Date("2015-01-01") }``
1111
- - ``2015``
1112
-
1113
- * - ``{ $isoWeekYear: new Date("2016-01-01") }``
1114
- - ``2015``
1115
-
1116
- * - ``{ $isoWeekYear: new Date("2016-01-04") }``
1117
- - ``2016``
1118
-
1119
- .. seealso:: :expression:`$year`
0 commit comments