Click here to Skip to main content
15,900,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 ;)
Posted

You could always transfer the date picker dates into DateTime variables and then use the Compare[^] method.
 
Share this answer
 
Hi,

Use Compare validator in ASP .net. This might helop you.

Regards,
Suresh
 
Share this answer
 
why don't you use

VB
If dtp1.Value = dtp2.Value Then
  'some task
End If
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900