Class DateConverter

  • All Implemented Interfaces:
    org.svenson.converter.TypeConverter

    @Deprecated
    public class DateConverter
    extends Object
    implements org.svenson.converter.TypeConverter
    Deprecated.
    Provides methods to convert Date to/from String, so that it can be used as JSON object where required.
    • Constructor Detail

      • DateConverter

        public DateConverter()
        Deprecated.
    • Method Detail

      • fromJSON

        public Object fromJSON​(Object in)
        Deprecated.
        Specified by:
        fromJSON in interface org.svenson.converter.TypeConverter
      • string2Date

        @Deprecated
        public static Date string2Date​(String in)
        Deprecated.
        Convert a String into a date using ISODateTimeFormat;
        Parameters:
        in -
        Returns:
      • toJSON

        public Object toJSON​(Object in)
        Deprecated.
        Specified by:
        toJSON in interface org.svenson.converter.TypeConverter
      • date2String

        @Deprecated
        public static String date2String​(Date in)
        Deprecated.
        Return a String representation of the given Date.
        Parameters:
        in -
        Returns: