Class IsoDateConverter

java.lang.Object
de.brifle.sdk.helper.IsoDateConverter

public class IsoDateConverter extends Object
  • Constructor Details

    • IsoDateConverter

      public IsoDateConverter()
  • Method Details

    • toIsoString

      public static String toIsoString(Date date)
      Converts a date to a string in the format yyyy-MM-dd'T'HH:mm'Z'
      Parameters:
      date -
      Returns:
    • toIsoStringShort

      public static String toIsoStringShort(Date date)
      Converts a date to a string in the format yyyy-MM-dd
      Parameters:
      date -
      Returns:
    • fromIsoString

      public static Date fromIsoString(String date) throws Exception
      Converts a string in the format yyyy-MM-dd'T'HH:mm'Z' to a date
      Parameters:
      date -
      Returns:
      Throws:
      Exception
    • fromIsoStringShort

      public static Date fromIsoStringShort(String date) throws Exception
      Converts a string in the format yyyy-MM-dd to a date
      Parameters:
      date -
      Returns:
      Throws:
      Exception