Interface DateOperators.DateToString.FormatBuilder
- Enclosing class:
DateOperators.DateToString
public static interface DateOperators.DateToString.FormatBuilder
- Since:
- 1.10
- Author:
- Christoph Strobl, Matt Morrissette
-
Method Summary
Modifier and TypeMethodDescriptionCreates newDateOperators.DateToStringusing the server default string format (%Y-%m-%dT%H:%M:%S.%LZ) for dates.Creates newDateOperators.DateToStringwith all previously added arguments appending the given one.
-
Method Details
-
toString
Creates newDateOperators.DateToStringwith all previously added arguments appending the given one.- Parameters:
format- must not be null.- Returns:
-
defaultFormat
DateOperators.DateToString defaultFormat()Creates newDateOperators.DateToStringusing the server default string format (%Y-%m-%dT%H:%M:%S.%LZ) for dates.
NOTE: Requires MongoDB 4.0 or later.- Returns:
- new instance of
DateOperators.DateToString. - Since:
- 2.1
-