以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何将时间戳转为yyyy/mm/dd h:m:s  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=106943)

--  作者:yj1041132457
--  发布时间:2017/9/18 16:36:00
--  [求助]如何将时间戳转为yyyy/mm/dd h:m:s
 如何将时间戳转为yyyy/mm/dd h:m:s图片点击可在新窗口打开查看
--  作者:有点甜
--  发布时间:2017/9/18 17:53:00
--  

参考代码

 

Dim st As New Date(1970,1,1,8,0,0)
Dim timestamp As Integer = CInt((Date.Now - st).TotalSeconds()) \'时间戳
msgbox(timestamp)
Dim d = st.AddSeconds(timestamp)
msgbox(d)