While reading data of sql server from gridview ,the date column adds an extra 12:00:00 AM to the end of the date.
eg:9/29/2013 12:00:00 AM
In the gridview it shows this way, but i only have a date type date saved in the sql table.
I need that to be only 9/29/2013.
same thing happened while reading and displaying that in a textbox , but it could be solved this way
DateTime date =Convert.ToDateTime(VoucherDetails["voucher_date"]);
TextBox3.Text = date.ToString("MM/dd/yyyy");
any solutions for the gridview ?