MaxDateRule
public class MaxDateRule : DateRule
MaxDateRule presents the max date requirement that a date string should follow.
Version
1.9.9Date
19/09/22-
Initialize the rule
Declaration
Swift
public init(maxDate: Date, dateFormats: [DateFormat], message: String)Parameters
maxDateThe max date
dateFormatsA list of format supported by the rule
messageThe error message to apply.
-
Undocumented
Declaration
Swift
public override func isValid(value: String?) -> String?
MaxDateRule Class Reference