The code only checked for month, not year, so an event spanning across the new year would potentially be hidden/shown when it shouldn't be.
Also, there's a problem whereby the splitting of the date string will result in some numbers being strings, so use parseInt() just in case (I was having a hard time with === compares!)
The code only checked for month, not year, so an event spanning across the new year would potentially be hidden/shown when it shouldn't be.
Also, there's a problem whereby the splitting of the date string will result in some numbers being strings, so use parseInt() just in case (I was having a hard time with === compares!)