Here is my code,
<%=Html.TextBoxFor(m => m.DateOfFileClosed,
new {id="txtClosingDate",
@class = "DataEntry_Date" } )%>
It gives me the DateTime like “03/12/2012 10:09:50 AM”.
“DataOfFileClosed” is a property of DataTime type. I want to get the whole DateTime but for editing/viewing purpose I want only date “03/12/2012”.
One thing that I don’t want to use attribute over this property.
How can I do this?
You can do like this