In my model i've the MyDate property that has datetime type. I sign the property with the DisplayFormat attribute in this mode:
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy hh:mm}")]
public DateTime MyDate { get; set; }
in my view:
...
<%= Html.EditorFor(model => model.Evento.MyDate)%>
...
why if the value of property is '2011-05-03 14:47', in my view (into EditorFor) i see '03/05/2011 02.47' ?
The DataFormatString is correct!
thanks so much for reply
Alberto