以文本方式查看主题 - 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=196261) |
-- 作者:苏州老街 -- 发布时间:2025/4/13 17:36:00 -- [求助]计算 老师好,我想让剩余_总天数的最后一天停止计算,不出现负数。 If e.DataCol.Name = "结束时间" Then Dim s As TimeSpan = CDate(e.DataRow("结束时间")) - Date.Today e.DataRow("剩余_总天数") = s.Days End If |
-- 作者:有点蓝 -- 发布时间:2025/4/13 20:22:00 -- If e.DataCol.Name = "结束时间" and e.DataRow("结束时间") > Date.Today Then |