I have a field in table with type of smallDate.
I want to show this field in special format every where that field is diplayed (like list view , view page and in edit page)
I wrote following code:
public void Row_Rendered() {
if (StartDate.DbValue != null && StartDate.DbValue != DBNull.Value)
StartDate.ViewValue = ((DateTime)StartDate.DbValue).ToMyDateFormat();
}
but when i edit field, I see "startdate" field with default format! whats wrong ?
thanks.