DataFormatString property of GridView BoundField also allows you to specify the format for date values to display the date with different styles. You can use the different combinations of M for month, d for day and y for year. To display the time format along with date you can use HH for 24Hour, hh for hour, mm for minutes, ss for seconds and tt for AM/PM. Remember these characters are case sensitive while using them to format the date time values.
Examples of Date Formats for GridView DataFormatString
1. {0:MM-dd-yyyy}
2. {0:MMM dd, yyyy}
3. {0:ddd MM, yyyy}
4. {0:MM-dd-yyyy HH:mm ss tt}