Here is the scenario for this solution:
You have a Gridview which is populated from a database, you are using BoundFields and one or more columns is a date, but it’s showing the time also. You want it to only use the Short Date format (01/01/2010).


For each of the Bound Fields with Dates, set the following properties:

DataFormatString="{0:d}"
HtmlEncode=false