以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  如如定义一个日期是动态,但时间不变的时间变量?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=118795)

--  作者:有点甜
--  发布时间:2018/5/11 10:41:00
--  
你代码没问题,output得到的也是 2018-05-11 08:30:00

--  作者:有点甜
--  发布时间:2018/5/11 18:23:00
--  
Dim y As Integer = Date.Today.Year
Dim m As Integer = Date.Today.Month
Dim d As Integer = Date.Today.Day
Dim h As Integer = Args(0)
Dim n As Integer = Args(1)
Dim s As Integer = Args(2)
Dim tm As Date = new Date(y,m,d,h,n,s) 
Return tm