after_or_equal
| Category | Date |
| Related | after · before · before_or_equal |
| Bundle size | 430 B |
Validates that the date is after or equal to a given date or another element's date. Requires the Date module to be installed.
Usage
vue
<VfText name="start_date" label="Start date" rules="after_or_equal:today" />vue
<template>
<VfText name="start_date" label="Start date" rules="after_or_equal:today" />
</template>ts
{
start_date: {
type: 'text',
label: 'Start date',
rules: 'after_or_equal:today',
},
}Parameters
| Parameter | Description |
|---|---|
date | A date string, the keywords today, tomorrow, yesterday, or another element's path — see Referencing Other Elements. |
Error Messages
| Key | Default Message |
|---|---|
rule_after_or_equal_error | The {attribute} must be a date after or equal to {date}. |