1 ///2 /// 读取EXCEL中的日期进行转换 3 /// 4 /// 5 ///6 private DateTime ConvertExcelDateTime(object objValue) { 7 if (objValue is DateTime) 8 { 9 return DateTime.Parse(objValue.ToString());10 }11 else12 {13 string dt = DateTime.FromOADate(Convert.ToInt32(objValue)).ToString("d");14 return DateTime.Parse(dt.ToString());15 }16 }