如题所述
VBA中如何把excle中提取的字符串20090405变成日期型2009\/4\/5Dim a As String, b As Date a = "20090405"b = DateSerial(Left(a, 4), Mid(a, 5, 2), Right(a, 2))