以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何才能将记录到数据表中的日期细化到时分?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=16036)

--  作者:amanda123
--  发布时间:2012/1/31 15:51:00
--  [求助]如何才能将记录到数据表中的日期细化到时分?
你好,我需要求订单每个环节的耗时是多少,如何订单送审时在日志表中添加一条记录: Tables("流程日志表").Current("到达时间") = Date.now ,在审核时:Tables("流程日志表").Current("结束时间") = Date.now,求耗时: t1=Tables("流程日志表").Current("到达时间") , Tables("流程日志表").Current("耗时") =(Date.Now - t1).TotalHours,但出来的结果总是不对,到达时间和结束时间总是只记录到天,例如2012-01-31 上午 00:00:00,请问如何才能记录下具体时刻?我用的数据库是sqlserver.
--  作者:foxor
--  发布时间:2012/1/31 16:29:00
--  

date.today为当前日,date.now.hour为当前时


--  作者:狐狸爸爸
--  发布时间:2012/1/31 16:57:00
--  

看看:

http://www.foxtable.com/help/topics/0044.htm