Search code examples
angulardatepickerngx-bootstrap

Can I restrict the date in the range to be a minimum of one day?


i.e do not permit 12/06/2017 - 12/06/2017

But the date is at least one day.

i.e 12/06/2017 - 12/07/2017

I'm using this https://valor-software.com/ngx-bootstrap/#/datepicker


Solution

  • You can build any custom validation on top of datepicker We have a planned feature to include preprocessing of date selection but it will happen later. Date range selection could be one day too, air tickets selection for example, both ways in one day for example