Date range validation
See original GitHub issueI’m building a date range picker with two date inputs and I’d like to validate that the end date does not come before the start date and the start is not after the end. It would be cool if I could somehow dynamically set the min
and max
based on other fields in the form or even have some way to set that via useValidatedInput
/Field
/etc. so I can control the state myself with whatever I need and just pass what those validation values should be dynamically.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Validating date range - FormValidation
The following form asks you to enter a date in the range of 2000/01/01 and 2020/12/30. It can be implemented by using the...
Read more >Javascript - date range validation - Stack Overflow
i've a form user can enter any date , but i want to set a date range validation . for example: from 1-12-2012...
Read more >Use Excel Data Validation for Entering Dates - Contextures
On any sheet in the workbook, type "StartDate" in one cell, and type "EndDate" in the cell below. In the cells to the...
Read more >Javascript Data Type How to - Check date range validation
We would like to know how to check date range validation. Answer. <!DOCTYPE html> <html> ...
Read more >Validate Date Range (From - To). · GitHub
Validate Date Range (From - To). Raw. date-range-validation.js ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kentcdodds that’s an interesting idea, I moved that over to https://github.com/brophdawg11/remix-validity-state/discussions/24 to think through it in some more detail 👍
Feel free to ignore this, but when I was maintaining angular-formly, I got several folks asking for https://json-schema.org/ support. I couldn’t do it because I was too far down the road, but something to think about at this early stage maybe.