VBA excel 提取字符串中的日期

excelVBA

1个回答

写回答

谦善

2025-12-28 23:19

+ 关注

Sub 提取日期()Dim tempDim str As StringDim d As Datestr = l4-122344/2012.3.8temp = Split(str, /)(1)d = DateSerial(Split(temp, .)(0), Split(temp, .)(1), Split(temp, .)(2))End Sub

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号