以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  Date.Now()为什么不显示时间。  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=114146)

--  作者:nyckn
--  发布时间:2018/1/30 9:33:00
--  Date.Now()为什么不显示时间。

表属性,datacolchanged事件

If e.DataCol.name = "数量" AndAlso e.newvalue <> Nothing Then
    e.DataRow("riqi") = Date.Today()
    e.DataRow("时间") = Date.Now()
End If

 

结果 riqi 和 时间  两列代码不同,为什么两自动添加的内容,显示的却都是日期。


--  作者:cd_tdh
--  发布时间:2018/1/30 10:04:00
--  

你的意思是time吧?

http://www.foxtable.com/webhelp/scr/2033.htm

[此贴子已经被作者于2018/1/30 10:05:21编辑过]

--  作者:有点甜
--  发布时间:2018/1/30 10:45:00
--  

把你的时间列,设置一下格式->列属性->日期格式

 

http://www.foxtable.com/webhelp/scr/0044.htm