M
M
MADm2016-05-11 17:05:37
ASP.NET
MADm, 2016-05-11 17:05:37

What is the correct way to implement Date binding in ASP.NET MVC?

Problem with binding date in Russian format.
Made the model registered the property

[DataType(DataType.Date),DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}", ApplyFormatInEditMode = true)]

When submitting the form, this method works, but if you make a request through requestparams, then the model is empty.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question