Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

checking a date against another date (winforms, c#)

$
0
0

Hello.  Have 3 textboxes on a form that show startdate, completiondate, duedate.  All 3 have a corresponding datetimepicker for the user to select date from.  Selecting duedate and startdate are fine as is how they can not be older than  DateTime.Now.  The completiondate is the trouble maker.  I need to make certain that it does not predate the startdate.  It can be equal to startdate, greater than startdate, and greater than due date.  What is the best way to compare a date with other dates?

Thanks.

John


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>