你要用类型转换的,startDate.toshorttimestring
dim strSQL as string
strSQL="select * from yonghu where kd_date>'"& startDate.ToShortDateString&"' and kd_date<='"& endDate.ToShortDateString&"'"
string a = this.DropDownList1.SelectedItem.Text.Trim();
string b = this.DropDownList2.SelectedItem.Text.Trim();
string c= this.DropDownList3.SelectedItem.Text.Trim();
c = a +"-"+ b + "-" + c;
///Convert.ToDateTime(c).ToShortDateString();
string sqlstr = "select from table where starttime >" + c ;
string StartDateTime="2004-11-10";
string EndDateTime="2004-12-12";
stirng sSQL="Select * From Test Where FDateTime>="+StartDateTime+" AND FDateTime<"+
(Convert.ToDateTime(EndDateTime).AddDays(1)).ToString();