Popular Posts

Tuesday, June 14, 2011

how to compare any date value with the current system date in c#

      *dtpDate.Value > DateTime.Now
OR *dtpDate.Value<DateTime.Now
OR *dtpDate.Value<=DateTime.Now
You may apply any operator in between the two values in order to compare.
Here the value marked star can be any value you wish to compare with the system date.

No comments:

Post a Comment