ASP.NET MVC input field with datetime datatype is not refreshing its value

Switch:

[DataType(DataType.Datetime)]

to:

[DataType(DataType.Date)]

This will only display the date portion in the browser.


If it is okay , you can change your input field display type as string instead and then at backed you can use C# code to format date time i.e.

mydatetime.ToString("{0:dd.MM.yyyy hh:mm}");

and at frontend you can use moment.JS to change the input field's format