spring-framework / org.springframework.format.datetime.joda / JodaTimeFormatterRegistrar / setDateTimeFormatter

setDateTimeFormatter

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, ReadableInstant, Date and Calendar types. When specified the dateTimeStyle and useIsoFormat properties will be ignored.

Parameters

formatter - the formatter to use

Since
3.2

See Also
#setDateFormatter#setTimeFormatter