date_equals
| Category | Date |
| Related | date_format · after · before |
| Bundle size | 195 B |
Validates that the value equals the given date. The comparison is a strict string match against the parameter.
Usage
vue
<VfText name="start_date" label="Start date" rules="date_equals:2026-12-31" />vue
<template>
<VfText name="start_date" label="Start date" rules="date_equals:2026-12-31" />
</template>ts
{
start_date: {
type: 'text',
label: 'Start date',
rules: 'date_equals:2026-12-31',
},
}Parameters
| Parameter | Description |
|---|---|
date | The date string the value must equal. |
Error Messages
| Key | Default Message |
|---|---|
rule_date_equals_error | The {attribute} must be equal to {date}. |