How to compare DateTime in C# WPF?

Posted by Ashish Ashu on Stack Overflow See other posts from Stack Overflow or by Ashish Ashu
Published on 2010-06-17T06:57:27Z Indexed on 2010/06/17 7:03 UTC
Read the original article Hit count: 1091

Filed under:
|
|
|

I don't want user to give the back date or time.

How can I compare if the entered date and time is LESS then the current time?

If the current date and Time is 17-Jun-2010 , 12:25 PM , I want user cannot give date before 17 Jun -2010 and time before 12:25 PM.

Like my function return false if the time entered by user is 16-Jun-2010 and time 12:24 PM

Please help!!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET