Why is DisplayFormat DataFormatString not working?

If you can’t get it working on the model, you could try it on the view.

@Html.TextBoxFor(m => m.ValidFrom, "{0:dd/MM/yyyy}", new {maxlength = 10})

Leave a Comment