datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Disabled date specific

Open muhammadashariabdillah24 opened this issue 3 years ago • 0 comments

Feature request

So I had an idea to ask this library could have a feature to disable certain dates in calendar

Why it is needed

So that people can remove certain days from the calendar

Possible implementation

this feature will work if someone wants to remove a certain day from the calendar, so there are two ways i.e.

  1. enter a list of any dates you want to deactivate

example:

<DateTimePicker disableDate={['2022-05-05', '2022-06-06']} />

  1. turn off certain days that you want to disable

example:

<DateTimePicker disableDate={['Sun', 'Mon', 'Tue']} />