V
Volodymyr Lozovoy
Hi All,
who suggest why subj do not affect on displayed result for date?
who suggest why subj do not affect on displayed result for date?
Eliyahu Goldin said:If you look in the help for BoundColumn.DataFormatString, you will find
that
D (or d) displays numeric values in decimal format. It shouldn't affect
date
fields, which is what you are observing.
You can format dates in code-behind in either ItemDataBound or PreRender
event. Get the cell text, convert it to DateTime and format it back to
string with format expression of your choice.
Eliyahu
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.