date
| Category | Type |
| Related | date_format · after · before |
| Bundle size | 232 B |
Validates that the value is a valid date, parsed with the configured date adapter. Requires the Date module to be installed.
Usage
vue
<VfText name="birthday" label="Birthday" rules="date" />vue
<template>
<VfText name="birthday" label="Birthday" rules="date" />
</template>ts
{
birthday: {
type: 'text',
label: 'Birthday',
rules: 'date',
},
}Error Messages
| Key | Default Message |
|---|---|
rule_date_error | The {attribute} is not a valid date. |