Formatting data using DataFormatString
EXAMPLE:
I was having an issue with it not applying my format. If it doesn’t work its one of the 3 key reasons below.For me I did not have HtmlEncode set to false.
The key properties are as follows:
o HtmlEncode = "False" ensures that the formatting is applied when displaying the date field. Without it, the formatting doesn't apply for some unknown reason.
o ApplyFormatInEditMode = "True" ensures that the DataFormatString is also applied when you change to the Edit mode. Without it, the formatting is ignored in Edit mode.