Class DateAttributeToDataContentConverter

java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.attributeconverters.DateAttributeToDataContentConverter
All Implemented Interfaces:
Converter<Date,String>

public class DateAttributeToDataContentConverter extends Object implements Converter<Date,String>
Attribute Converter for Date. Converts the Date to its proper Instant object and formats the date from ZoneOffset.UTC zone.
  • Constructor Details

    • DateAttributeToDataContentConverter

      public DateAttributeToDataContentConverter()
  • Method Details

    • convert

      public String convert(Date source)
      Description copied from interface: Converter
      Uses the source S object and produces an new instance of T.
      Specified by:
      convert in interface Converter<Date,String>
      Parameters:
      source - the input to be converted.
      Returns:
      an instance of T, converted from the input source.