Date

public extension Date
  • Create a Date instance from a JSON value.

    Declaration

    Swift

    init(fromJSONValue value: Any)

    Parameters

    value

    The JSON value from which to create a Date instance. The JSONCache.dateFormat setting governs how the value is interpreted.

  • Produce a JSON serializable value from this Date instance. The JSONCache.dateFormat setting governs the type and format of the produced value.

    Declaration

    Swift

    func toJSONValue() -> Any

    Return Value

    A JSON serializable value representing this Date instance.