Uses of Class
org.springframework.data.mongodb.core.aggregation.DateOperators.DateFromString
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of DateOperators.DateFromString in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionstatic DateOperators.DateFromString
DateOperators.dateFromString
(String value) Construct a Date object from the given dateString
.
To use afield reference
orAggregationExpression
as source of the date string considerDateOperators.DateOperatorFactory.fromString()
orfromStringOf(AggregationExpression)
.
NOTE: Requires MongoDB 3.6 or later.static DateOperators.DateFromString
DateOperators.DateFromString.fromString
(Object value) Creates newDateOperators.DateFromString
.DateOperators.DateOperatorFactory.fromString()
Creates newAggregationExpression
that converts a date/time string to a date object.
NOTE: Requires MongoDB 3.6 or later.static DateOperators.DateFromString
DateOperators.DateFromString.fromStringOf
(String fieldReference) Creates newDateOperators.DateFromString
.static DateOperators.DateFromString
DateOperators.DateFromString.fromStringOf
(AggregationExpression expression) Creates newDateOperators.DateFromString
.DateOperators.DateFromString.withFormat
(String format) Optionally set the date format to use.DateOperators.DateFromString.withTimezone
(DateOperators.Timezone timezone) Optionally set theDateOperators.Timezone
to use.