i have date stored in a string format as follows: "2014-03-12" im passing this to a database which accepts the date as datetime. im converting the string date to datetime format as follows:
DateTime StartDates = Convert.ToDateTime(StartDate);
but the time gets appended along with the date as "2014-03-12 12:00:00:00"
can anyone tel me how to send only the date leaving out the time. i want the final date to be still in datetime format only but with time part cut off