如何判断"2008-10-10 10:45:00"里面存在空格!
strTime = dsexcel.Tables[0].Rows[i]["TIME"].ToString(); //strTime = "1899-12-30 10:45:00"
(dsexcel.Tables[0].Rows[i]["TIME"].ToString().Split(' '))[1].Contains(":")/*当strTime = "10:45:00"时,这条语句越界了,故我需要判断strTime 是否有空格*/
不知如何写,请赐教!