@vinejs/vine - v4.0.0-next.1
    Preparing search index...

    Type Alias DateEqualsOptions

    Options for the date equals validation rule. Controls how date equality comparison is performed.

    const options: DateEqualsOptions = {
    compare: 'day', // Compare only the day part
    format: 'YYYY-MM-DD'
    }
    type DateEqualsOptions = {
        compare?: dayjs.OpUnitType;
        format?: dayjs.OptionType;
    }
    Index

    Properties

    Properties

    compare?: dayjs.OpUnitType

    The unit of time to use for comparison (year, month, day, etc.)

    format?: dayjs.OptionType

    The date format to use for parsing the comparison value