你好,我需要求订单每个环节的耗时是多少,如何订单送审时在日志表中添加一条记录: Tables("流程日志表").Current("到达时间") = Date.now
,在审核时:Tables("流程日志表").Current("结束时间") = Date.now,求耗时: t1=Tables("流程日志表").Current("到达时间") ,
Tables("流程日志表").Current("耗时") =(Date.Now - t1).TotalHours,但出来的结果总是不对,到达时间和结束时间总是只记录到天,例如2012-01-31 上午 00:00:00,请问如何才能记录下具体时刻?我用的数据库是sqlserver.
date.today为当前日,date.now.hour为当前时