Class 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>
    A Converter which uses a given DateTimeFormatter to convert a String to a LocalDate. By default the DateTimeFormatter is derived from the given locale using FormatStyle.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleLocalDateConverter

        public SimpleLocalDateConverter​(java.time.format.DateTimeFormatter dateTimeFormatter)
    • Method Detail

      • convert

        public java.time.LocalDate convert​(java.lang.String source)
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<java.lang.String,​java.time.LocalDate>