Asp.net mvc: default model binder problem?

Veli is right. If you want to use that Date format, you'll need a custom model binder for your DateTime. Take a look here: How to specify date format for model binding?

Right, well the problem is the date format after all, it looks like the expected date format string is mm/dd/yyyy and the date is coming in as dd/mm/yyyy.

You can add a new route to routing table using routes. MapRoute( "SearchRoute", "{controller}/{action}/{id}", new {controller = "Home", action = "Index", reportedDate = UrlParameter. Optional} ); then the your url will become MyController/Search/30-05-2011 that will make your controller action catch the value of reportedDate but you have to chaneg the date format you used in your date picker.

This must be a bug in the default model binder or might be missing something.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions