MinDateRule

public class MinDateRule : DateRule

MinDateRule presents the min date requirement that a date string should follow.

Version

1.9.9

Date

19/09/22

Author

Adamas
  • Initialize the rule

    Declaration

    Swift

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

    Parameters

    minDate

    The min date

    dateFormats

    A list of format supported by the rule

    message

    The error message to apply.

  • Undocumented

    Declaration

    Swift

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