标签: asp.net datetime gridview
我使用此代码:(Eval("RegDtTime")-DateTime.Now来计算注册日期时间(在数据库中)与DateTime.now中的gridview之间的差异,但得到此错误:operator '-' is not defined for types 'Object' and 'Date' 。那么我应该使用什么呢?
(Eval("RegDtTime")-DateTime.Now
DateTime.now
gridview
operator '-' is not defined for types 'Object' and 'Date'