We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have two date pickers that work together, the end date and the start date.
I want to set the minDate of the end date to the selection of the start date (because it cannot end before it starts) and vice versa.
This is how I am doing it:
onInputDateTo(date) { ... const dateEndOfDay = new Date(date) dateEndOfDay.setHours(23, 59, 59, 999) this.maxDateFromAllowed = dateEndOfDay; ...
Notice how I use setHours to change to the end of the day to allow the selection of the same day.
No matter which day is selected, setting the maxDateFromAllowed will clear the selection of the start date.
maxDateFromAllowed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have two date pickers that work together, the end date and the start date.
I want to set the minDate of the end date to the selection of the start date (because it cannot end before it starts) and vice versa.
This is how I am doing it:
Notice how I use setHours to change to the end of the day to allow the selection of the same day.
No matter which day is selected, setting the
maxDateFromAllowed
will clear the selection of the start date.The text was updated successfully, but these errors were encountered: