Package de.bmiag.tapir.core.converter
Class SimpleLocalDateConverter
- java.lang.Object
-
- de.bmiag.tapir.core.converter.SimpleLocalDateConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<java.lang.String,java.time.LocalDate>
public class SimpleLocalDateConverter extends java.lang.Object implements org.springframework.core.convert.converter.Converter<java.lang.String,java.time.LocalDate>
AConverter
which uses a givenDateTimeFormatter
to convert aString
to aLocalDate
. By default theDateTimeFormatter
is derived from the given locale usingFormatStyle.MEDIUM
. You can specify the date format pattern by providing the dateformat property.- Since:
- 3.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description SimpleLocalDateConverter(java.time.format.DateTimeFormatter dateTimeFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDate
convert(java.lang.String source)
-