I've created a custom EditorFor DateTime and added a classname to the textbox
@model DateTime
@Html.TextBoxFor(m => m, new { @class = "date-time-picker" })
So that I can connect jquery datepicker to it client side
$("input.date-time-picker").datetimepicker();
The problem is that for the
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:g}")]
attribute to work you need to use the built in EditorFor (Or extracting the model metadata and do the same stuff yourself), so whats the best way of overriding the default EditorFor, add the classname and call the built in editorfor so that I can use the DisplayFormat attribute