spring-framework / org.springframework.format.datetime

Package org.springframework.format.datetime

Types

DateFormatter

open class DateFormatter : Formatter<Date>

A formatter for java.util.Date types. Allows the configuration of an explicit date pattern and locale.

DateFormatterRegistrar

open class DateFormatterRegistrar : FormatterRegistrar

Configures basic date formatting for use with Spring, primarily for org.springframework.format.annotation.DateTimeFormat declarations. Applies to fields of type Date, Calendar and long.

Designed for direct instantiation but also exposes the static #addDateConverters(ConverterRegistry) utility method for ad-hoc use against any ConverterRegistry instance.

DateTimeFormatAnnotationFormatterFactory

open class DateTimeFormatAnnotationFormatterFactory : EmbeddedValueResolutionSupport, AnnotationFormatterFactory<DateTimeFormat>

Formats fields annotated with the DateTimeFormat annotation using a DateFormatter.