比较2个日期选择器值 [英] Compare 2 date picker values
本文介绍了比较2个日期选择器值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你们知道如何比较日期选择器的值吗?
因此,如果可以比较两个datepicker的值,那么我就可以做一个if语句,任何人都可以在这里给我一个示例片段代码,仅供我研究我的作业;)
Guys do you know how to compare date picker values?
so I can then make an if statement if I can compare the value of the 2 datepickers can anyone give me a sample fragment code here just for my research of my assignment ;)
推荐答案
您始终可以将日期选择器日期转移到DateTime
变量中,然后使用比较 [^ ]方法.
You could always transfer the date picker dates into DateTime
variables and then use the Compare[^] method.
在ASP .net中使用比较验证器.这会帮助你.
问候,
Suresh
Hi,
Use Compare validator in ASP .net. This might helop you.
Regards,
Suresh
为什么不使用
why don''t you use
If dtp1.Value = dtp2.Value Then
'some task
End If
这篇关于比较2个日期选择器值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文