I have a model as Follows, I am using Linq to SQL
public class CustomerDetails
{
public Customer customer { get; set; }
}
"Customer" is populated from a single customer from the database. Customer has a field "NextEmailDate". I want to bind this to a textBox but only show the date and not the time
@Html.TextBoxFor(m=> m.Customer.NextEmailDate)
But I get a text box with the text 16/09/2012 00:00:00 how do I make this just 16/09/2012?