I have this object @item.DataInicio which is a date and I want it to pass through a javascript function
function checkweek(data) {
alert(data);
}
I call the function using a button:
input type"button" onclick="checkweek(@item.DataInicio)"
But it doesn't give the alert.