I am trying to check if a day (of a date) is odd or even - with the code below.
If I use the variable var_day instead of a number, nothing happens.
Look for a solution
Thanks.
If I use the variable var_day instead of a number, nothing happens.
Look for a solution
Thanks.
Code:
<%
var_day = Day(date())
%>
<p id="demo"></p>
<script>
{
var d = "";
d = d + Number.isInteger(var_day);
document.getElementById("demo").innerHTML = d;
}
</script>