I\'m trying to add a class to an input.
This is not working:
@Html.EditorFor(x => x.Created, new { @class = \"date\" })
You could also do it via jQuery:
$('#x_Created').addClass(date);