open class DateTimeFormatterRegistrar : FormatterRegistrar
Configures the JSR-310 java.time formatting system for use with Spring.
Author
Juergen Hoeller
Author
Phillip Webb
Since
4.0
See Also
#setDateStyle#setTimeStyle#setDateTimeStyle#setUseIsoFormatorg.springframework.format.FormatterRegistrar#registerFormattersorg.springframework.format.datetime.DateFormatterRegistrarorg.springframework.format.datetime.joda.DateTimeFormatterFactoryBean
DateTimeFormatterRegistrar() |
open fun registerFormatters(registry: FormatterRegistry): Unit |
|
open fun setDateFormatter(formatter: DateTimeFormatter): Unit
Set the formatter that will be used for objects representing date values. This formatter will be used for the LocalDate type. When specified, the |
|
open fun setDateStyle(dateStyle: FormatStyle): Unit
Set the default format style of java.time.LocalDate objects. Default is |
|
open fun setDateTimeFormatter(formatter: DateTimeFormatter): Unit
Set the formatter that will be used for objects representing date and time values. This formatter will be used for LocalDateTime, ZonedDateTime and OffsetDateTime types. When specified, the |
|
open fun setDateTimeStyle(dateTimeStyle: FormatStyle): Unit
Set the default format style of java.time.LocalDateTime objects. Default is |
|
open fun setTimeFormatter(formatter: DateTimeFormatter): Unit
Set the formatter that will be used for objects representing time values. This formatter will be used for the LocalTime and OffsetTime types. When specified, the |
|
open fun setTimeStyle(timeStyle: FormatStyle): Unit
Set the default format style of java.time.LocalTime objects. Default is |
|
open fun setUseIsoFormat(useIsoFormat: Boolean): Unit
Set whether standard ISO formatting should be applied to all date/time types. Default is "false" (no). If set to "true", the "dateStyle", "timeStyle" and "dateTimeStyle" properties are effectively ignored. |