chrisdavies / tiny-date-picker

A small, modern, dependency-free date picker
https://chrisdavies.github.io/tiny-date-picker/
415 stars 87 forks source link

Disable dates from current date #75

Closed dheeraja00 closed 6 years ago

dheeraja00 commented 6 years ago

Hi, I am using DateRangePicker & I got the requirement from client that user should not be able to select date after currentdate, so they can only select from previous to today, I can see you have option min & max in tinydatepicker but how can I achieve the required functionality in daterangepicker?

chrisdavies commented 6 years ago

Yeap. Someone else recently pointed out that DateRangePicker doesn't actually accept opts. It was on my todo list, and it's in the docs, but the docs are actually wrong.

Here's the issue that tracks this: https://github.com/chrisdavies/tiny-date-picker/issues/77