if(CurrentDate.getFullYear() == Now.getFullYear())
{
if(CurrentDate.getMonth() < Now.getMonth() - 3)
{
return true; // disable certain dates
}
if(CurrentDate.getMonth() == Now.getMonth() - 3)
{
if(CurrentDate.getDate() < Now.getDate())
{
return true;
}
}
}
The script above is functioning properly. However, when the current date falls in February, it does not disable December dates as expected since they are within a three-month range. What is your view on this scenario?