Class StringToDateConverter

java.lang.Object
org.springframework.batch.core.converter.StringToDateConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,Date>

public class StringToDateConverter extends Object implements org.springframework.core.convert.converter.Converter<String,Date>
Converter implementation from String to Date.

This converter expects strings in the DateTimeFormatter.ISO_INSTANT format.

Since:
5.0.1
Author:
Mahmoud Ben Hassine
  • Field Details

  • Constructor Details

    • StringToDateConverter

      public StringToDateConverter()
  • Method Details

    • convert

      public Date convert(String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,Date>