Asp.Net MVC 2 Html.TextBoxFor Best way to specify a format string for a DateTime property of model

Posted by Simon Fox on Stack Overflow See other posts from Stack Overflow or by Simon Fox
Published on 2010-05-19T22:31:20Z Indexed on 2010/05/19 23:00 UTC
Read the original article Hit count: 1400

As the question title explains, what is the best way to specify a format which my Views use when displaying values of a DateTime property via the Html.TextboxFor method.

The default display includes the Date and Time where I really only want the Date displayed.

Thanks

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about asp.net-mvc-2