I have a dynamic BoundField (for a DetailsView) with the following code:
BoundField bf1 = new BoundField(); bf1.DataField = \"CreateDate\"; bf1.DataFormatStr
Formatting depends on the server's culture setting. If you use en-US culture, you can use Short Date Pattern like {0:d}
en-US
{0:d}
For example, it formats 6/15/2009 1:45:30 to 6/15/2009
6/15/2009 1:45:30
6/15/2009
You can check more formats from BoundField.DataFormatString