7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Dim str As String
Dim temp As String
str = "20050511-010225"
temp = Left(str, 4) & "-" & Mid(str, 5, 2) & "-" & Mid(str, 7, 2) & " " & Mid(str, 10, 2) & ":" & Mid(str, 13, 2) & ":" & Right(str, 2)
Text1.Text = CDate(temp)
End Sub