in ASP.NET gridview binding two dates. I want to display dd/MM/yyyy but it displays 10/03/2014 00:00:00.
dd/MM/yyyy
10/03/2014 00:00:00
DataFormatString is a property of BoundField control and doesn't affect any other control. You can specify the format in an Eval expression:
DataFormatString
BoundField
Eval
Text='<%# Eval("Fromdate", "{0:dd/MM/yyyy}") %>' />