比较 ASP.NET 中 GridView 中的两个日期
我有一个 GridView
,其中有两个日期列,它们是 EditTemplates
。如何比较这两个日期?
I have a GridView
with two Date columns which are EditTemplates
. How do I compare the 2 dates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常我想我会这样做:
您可以使用
DateDiff()
查找日期之间的差异,如果DateTime.Compare()
不适合你。你尝试了什么?
Normally I think I would do something like this:
You could use
DateDiff()
to find the difference between the dates ifDateTime.Compare()
does not work for you.What have you tried?
尝试这样..
您可以根据实际情况更改索引或任何内容。
我希望它能帮助你......
try like this..
You can change index or anything as your real situation.
I hope it will helps you....