ASP.Net MVC TimeSpan as action parameter?

Posted by HeavyWave on Stack Overflow See other posts from Stack Overflow or by HeavyWave
Published on 2010-05-19T10:27:29Z Indexed on 2010/05/19 10:30 UTC
Read the original article Hit count: 174

Filed under:

I am trying to use TimeSpan as a parameter type for an action in a controller, but the value is always now, so I presume it is not parsed correctly by MVC. The value that gets sent to it is "7:00 PM". Is it possible to make MVC support such format? I am using MVC 2.

© Stack Overflow or respective owner

Related posts about asp.net-mvc