Skip to content

Birthday Validation appears to be about a month off. #624

Open
@raalin19

Description

@raalin19

I'm trying to validate a birthday being over 21 years of age.
I've set the following options on the input:

data-validation="required date birthdate"
data-validation-format="mm/dd/yyyy"
data-validation-age-range="21-124"
data-validation-error-msg-date="Please enter a valid date MM/DD/YYYY"
data-validation-error-msg-format="Please enter a valid date MM/DD/YYYY"
data-validation-error-msg-required="Please enter your date of birth."
data-validation-error-msg-birthdate="You must be 21 or over to register."

For the most part it appears to work correctly, however it is about 28 days off.
For example today is 08/07/2017
Entering 08/06/1996 triggers an error and displays the 'correct' message.
Entering anything on or before 07/07/1996 succeeds, but 07/08/1996 also proves to be invalid.

Any advice?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions