I\'m trying to add a class to an input.
This is not working:
@Html.EditorFor(x => x.Created, new { @class = \"date\" })
I used another solution using CSS attribute selectors to get what you need.
Indicate the HTML attribute you know and put in the relative style you want.
Like below:
input[type="date"] { width: 150px; }