I have two DateTime objects: StartDate and EndDate. I want to make sure StartDate is before EndDate. How is this
DateTime
StartDate
EndDate
if (StartDate < EndDate) // code
if you just want the dates, and not the time
if (StartDate.Date < EndDate.Date) // code