My data includes start date and end date values.
When I update this data, I need to restrict the selection of future dates in the end date datepicker, with the condition that it must be exactly one day after the start date.
For instance, if the start date is 01/05/2020, then the end date should be 01/06/2020 or any date later than that in the datepicker.
I attempted to achieve this using a function called getNextDayToStartDate()
, but I suspect there is an error in my approach.
Thank you for your assistance.
You can view the code here: https://stackblitz.com/edit/angular-dtnlyc