在C#中减去2次 [英] Subtract 2 times in C#
本文介绍了在C#中减去2次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我有2个文本框,最终用户会写两次不同的时间,然后程序应该计算它们之间的差异。
你能帮我吗?代码?
我尝试过:
我试过了正常数字,它工作但无法做到。
Hello,
I have 2 text boxes that the end user will write 2 different times and then the program should calculate the difference between them.
could you help me with the code?
What I have tried:
Ive tried normal numbers and it worked but couldnt do the time.
推荐答案
TimeSpan Struct(系统)| Microsoft Docs [ ^ ]。
这篇关于在C#中减去2次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文