7,765
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Dim t As String
t = Format("20100810181015", "yyyy-MM-dd hh:mm:ss")
MsgBox t
End Sub
Private Sub Command1_Click()
Dim t As String
t = Format("20100810181015", "0000-00-00 00:00:00")
MsgBox t
End Sub
Private Sub Command1_Click()
Dim strDate As Date
Dim strSj As String
strSj = "20100810181015"
strSj = Mid(strSj, 1, 4) & "-" & Mid(strSj, 5, 2) & "-" & Mid(strSj, 7, 2) & " " & Mid(strSj, 9, 2) & ":" & Mid(strSj, 11, 2) & ":" & Mid(strSj, 13, 2)
strDate = CDate(strSj)
Text1 = strDate
End Sub
Private Sub Command1_Click()
Dim strTime As String
strTime = "20100808165530"
Text1.Text = Mid(strTime, 1, 4) & "-" & _
Mid(strTime, 5, 2) & "-" & _
Mid(strTime, 7, 2) & " " & _
Mid(strTime, 9, 2) & ":" & _
Mid(strTime, 11, 2) & ":" & _
Mid(strTime, 13, 2)
End Sub