DateValidator source
Validate that date provided as string/number can be converted to a Date Object using the pattern provided.
Specializes Validator
Date Validator:
Properties
-
pattern :Property source
-
Default Value: - {Date} 'MM/dd/yyyy'
Methods
-
callDelegateMethod(name) source
-
This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"
Parameters:
Name Type Description name
string Inherited From: -
equals(anObject) → {boolean} source
-
Returns true if two objects are equal, otherwise returns false.
Parameters:
Name Type Description anObject
Object The object to compare for equality.
Inherited From: Returns: boolean
Returns
true
if the calling object andanObject
are identical and theiruuid
properties are also equal. Otherwise, returnsfalse
. -
validate(v) source
-
Parameters:
Name Type Description v
Date Value. //@returns {message: 'Unable to parse date - ' + v + ' in the format - ' + this.pattern} | new Date(result)
Generated from a4679af