I’ve learned how to create a custom ModelBinder that successfully changes the way the properties are set as parameters of my controller actions.
Now how do I intervene the inverse way? changing the way it sets the property back from the model to the View in the EditorFor method?
You can use Default Templates.
This is basically a snippet of code that is used for the type. It needs to be in the
Views\Shared\DisplayTemplatesandViews\Shared\EditorTemplates.Name of the view needs to be name of the Class.
This way you may change
DateTimeand other basic types as well.