How to format a date in a view for two-way binding in MVC 2?
Posted
by Jaxidian
on Stack Overflow
See other posts from Stack Overflow
or by Jaxidian
Published on 2010-03-29T14:32:16Z
Indexed on
2010/03/29
14:33 UTC
Read the original article
Hit count: 270
asp.net-mvc
|asp.net-mvc-2
So let's say I have a view that access a date:
<%= Html.TextBoxFor(model => Model.Birthday) %>
How do I have my view dictate how that date is formatted? I'd like to use common formatting options, and it's important that this is 2-way (both for display and data-entry).
© Stack Overflow or respective owner