disabled: [
{
from: new Date().setDate(today.getDate() - xxx),
to: new Date().setDate(today.getDate() - 49),
},
{
from: today,
to: new Date().maxDate
}
],
I am trying so much but with no success. I hope you can help me?
Thanks for you reaction. I am not sure if I can follow you, can you expand on that? What do you exactly mean with “dates comparison”? I am trying to achieve multiple ways of disabling dates, example:
disable by range of dates
disable by week days
I am understanding that I should put them in one disabled() method. But that is not working really. So how is dates comparing achieving this?
hmm ok, so what do I achieve exactly with this? I am confused. So you mean that with this transform now I can add the following line too? If that is what you mean then I understand. Otherwise I am really confused. return [ 0, 6 ].indexOf(date.getDay()) >= 0;