Skip to content

Validate dates typed or pasted into the input field #34

@Chris78

Description

@Chris78

If someone types/pastes "31.11.2024" for example show that this date is invalid.
It should be assumed it is in the format, that was specified via 'datepicker-format-value' to detect if it's valid (so 13.01.2024 is valid for '%d.%m.%Y', however it's invalid for '%m.%d.%Y').

I could imagine different possibilities:

  • add red border to the text field
  • open the calendar to select a valid date and show "invalid date" message in the calendar

Maybe even both will combine well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions