DateRule

public class DateRule : RuleType

DateRule presents the date requirement that a date string should follow.

Version

1.9.6

Date

14/09/22

Author

Adamas
  • Initialize the rule

    Declaration

    Swift

    public init(dateFormats: [DateFormat], message: String)

    Parameters

    dateFormats

    A list of format supported by the rule

    message

    The error message to apply.

  • Declaration

    Swift

    public func isValid(value: String?) -> String?