Class DateToStringConverter

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

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

This converter formats dates according to the DateTimeFormatter.ISO_INSTANT format.

Since:
5.0.1
Author:
Mahmoud Ben Hassine
  • Field Details

  • Constructor Details

    • DateToStringConverter

      public DateToStringConverter()
  • Method Details

    • convert

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