How can I edit my formula for
weekday=(day+2(month)+3(month)/5+year+year/4-year/100+year/400)/7
so that I dont get an error message saying \"e
The code 2(month)
is function call syntax, as if 2
were a function... but it's not. Do you perhaps mean multiplication, such as 2 * month
?
You need to enter an operator (*) for multiplication:
weekday=(day+2*(month)+3*(month)/5+year+year/4-year/100+year/400)/7;
If the operator is missing c(++) interprets it as a function call, wherebthe function name is e.g. 2
.