Hi,
I am using date picker in reactive web, how to disable all the dates except 1st and 15th in each months, and suppose if today is 1st september then calendar should show 15th sept 1st oct and so on enabled . i have to show the next available 1st or 15th from the current date.
Hi Shrinjala,
You can easily extend your condition to cover multiple months and even a few years. In addition, you can set up the condition to cover 1 year and set the MaxDate property of the DatePicker component to 1 year. This will ensure that users can only select dates within the set up time frame.\
Ossama
Ossama Ghanem wrote:
yes but i want to implement for many years not for only 1 year.
You would need to pass in the all the dates you want to exclude as a DateTime List in the DisabledDaysList property of the DatePicker.
Hi
This solution is feasible for a month but i want to implement this for all months in calender year .
Hi Ossama ,
I do not see this (Disabled date list ) property in my Date Picker ,
What could be possible reason can you help.?
Shrinjala Singh wrote:
Hi Shirinjala, Hope everything is all right. I would suggest using the diableDayFn of the Date picker component https://pikaday.com/examples/diableDayFn.html.