Function: isISOFormat()
function isISOFormat(value): boolean;
Defined in: plugins/field-date/src/field_date.ts:260
Validate a string value to see if it matches the format.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | The value to validate the format for. |
Returns
boolean
true if the value is in 'yyyy-mm-dd' format.
Example
isISOFormat('2000-02-20T00:00:00Z') === false
isISOFormat('2000-02-20') === true