vb.net 如何将时间戳转化为date类型

2024-11-22 04:56:00
推荐回答(3个)
回答1:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim unix As DateTime = #1/1/1970#
unix = unix.AddSeconds(CDbl(TextBox1.Text))
MsgBox(unix)
End Sub
我天才、、、

回答2:

MsgBox("The formatted date is " & Format(#5/31/1993#, "dddd, d MMM yyyy"))

Dim dateInMay As New System.DateTime(1993, 5, 31, 12, 14, 0)

回答3:

会死人、、、