You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First we get the dates and times in a multidimensional array and JSON encode the array (I'm using PHP, but the logic is still the same no matter what language you use).
And then in our function we loop through the array and do a simple if statement which says if the date is in the array then to apply a class to that which disables the date 😄
You just have to note that the date format must be the same within the function to whatever it is you have stored in your array. Also, my step is set to 15, which only disables that exact time. You'd need to change this to whatever format you use.
Activity
lukejames1111 commentedon Apr 26, 2022
I desperately want this too, but I can't find any way 🙁 I can only disable entire days, which I don't want to do.
lukejames1111 commentedon Apr 27, 2022
Ok, I've actually figured it out myself 😄
First we get the dates and times in a multidimensional array and JSON encode the array (I'm using PHP, but the logic is still the same no matter what language you use).
And then in our function we loop through the array and do a simple
ifstatement which says if the date is in the array then to apply a class to that which disables the date 😄You just have to note that the date format must be the same within the function to whatever it is you have stored in your array. Also, my step is set to 15, which only disables that exact time. You'd need to change this to whatever format you use.