Hi,
How can I validate a time to ensure that the hour and minute are not of the past.
I tried someting lile this
but this is also looking at seconds. I want to check only whether the hour and minute is of the past and not the seconds.Code:(dtpFrom.Value.TimeOfDay) < (DateTime.Now.TimeOfDay)
Any help![]()




Reply With Quote