isValid¶
Tests whether a string matches the browser ISO-like date pattern.
DateTimeOffset.isValid(val: string):( RegExpMatchArray | "null" )
Parameters¶
string val
The text to test.
Returns¶
The regular-expression match used by the browser parser, or null when the text does not match.
Remarks¶
Browser form scripts only; server workflow scripts should call parse and handle an error for invalid input.