Uses of Class
org.springframework.data.mongodb.core.aggregation.DateOperators.DateToString
Packages that use DateOperators.DateToString
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of DateOperators.DateToString in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation that return DateOperators.DateToStringModifier and TypeMethodDescriptionDateOperators.DateToString.FormatBuilder.defaultFormat()Creates newDateOperators.DateToStringusing the server default string format (%Y-%m-%dT%H:%M:%S.%LZ) for dates.DateOperators.DateToString.onNullReturn(Object value) Optionally specify the value to return when the date is null or missing.DateOperators.DateToString.onNullReturnValueOf(String fieldReference) Optionally specify the field holding the value to return when the date is null or missing.DateOperators.DateToString.onNullReturnValueOf(AggregationExpression expression) Optionally specify the expression to evaluate and return when the date is null or missing.Creates newAggregationExpressionthat converts a date object to a string according to a user-specified format.Creates newDateOperators.DateToStringwith all previously added arguments appending the given one.DateOperators.DateOperatorFactory.toStringWithDefaultFormat()Creates newAggregationExpressionthat converts a date object to a string according to the server default format.DateOperators.DateToString.withTimezone(DateOperators.Timezone timezone) Optionally set theDateOperators.Timezoneto use.