I am developing a web application using asp.net with c# and the above line of codes will make me to display the gridview as below.

DateTime startDate;
DateTime endDate;
if (DateTime.TryParse(txtstart.Text, out startDate) && DateTime.TryParse(txtend.Text, out endDate))
{
//string n1 = DropDownList2.SelectedItem.Text;
if (DropDownList1.SelectedItem.Text == "Membership")
{
SqlConnection con = new
SqlConnection(ConfigurationManager.ConnectionStrings["ProjectConnectionString"].ToString());
con.Open();
SqlDataAdapter adapter = new SqlDataAdapter("select p.Name,m.FID,m.MembNo,m.MembType,m.Validity,m.Remarks,m.Organisation,m.UpdateDate from Membership_det m INNER JOIN Personal_det p ON m.FID= p.FID where m.updateDate between @Start and @End ", con);
adapter.SelectCommand.Parameters.Add("@Start", SqlDbType.Date).Value = startDate;
adapter.SelectCommand.Parameters.Add("@End", SqlDbType.Date).Value = endDate;
DataTable dt = new DataTable();
adapter.Fill(dt);
con.Close();
GridView1.DataSource = dt;
GridView1.DataBind();
}
log.Debug("Info: Admin viewed the membership details");
}
Now in the gridview I have UpdateDate column which is displaying the datetime because in the database I have stored it as Datetime,Now instead of Datetime I need to display only Date i.e Instead of this 11/23/2013 12:00:00 AM I need this 11/23/2013.
Any suggestions are appreciated.As far as i know the data source binding can be done in aspx page but i just needed code on c#.
In aspx
<asp:GridView ID="GridView1" runat="server" RowStyle-HorizontalAlign="Center"></asp:GridView>