Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有输入日期和时间,如 27-06-2013 14:25:01 和退出日期和时间,如 27=06-2013 16:34:34 然后如何计算从进入时间到退出的花费时间或等待时间时间。
请帮我。提前致谢。
现在我从这个页面得到了一个解决方案......
请访问这里
可能这会帮助你..
int a = (date1 - dt).Hours;
date1 和 dt 吃了 datetime 类型
它会给你几个小时的差异..