Skip to content

How to write rule "after or equal:date" correct? #385

@RadmilaGit

Description

@RadmilaGit

Hello,
i need use rules before_or_equal:date and after_or_equal:date. How should I write correct version of this rules? I tried for example this, but it still doesn't work:
...
helperText={validator.current.message( "from", moment(filtConds.from), before_or_equal:${moment(filtConds.to)}, )
...
In my code is the bold text of rule in backticks of course.
I must compare date from inputbox "filtConds.from" with date from another inputbox "filtConds.to".
Thank for your help.

RG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions