Class DateConverter

java.lang.Object
com.cumulocity.model.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 Details

    • DateConverter

      public DateConverter()
      Deprecated.
  • Method Details

    • 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: