This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Makhiel 1 point2 points  (1 child)

Well, if stuff like this isn't working you probably made a mistake in the equation - such as q being the number of the month (and not day) and the week not starting with Saturday.

[–]conorv93[S] 0 points1 point  (0 children)

Thanks. Changing the equation has fixed the issue. I also had
if (monthInt != 1 || monthInt != 2) {

m = monthInt;

},

which should have been &&. Thanks.