I want this to equate to false when the date displayed is today’s date:
if (dateTimePickerScheduleDate.Value < DateTime.Now)
…but it doesn’t, because the DTP’s value contains “midnight” whereas “Now” is after midnight.
How do I “trunc” these values so that it disregards the time portion?
The Date property returns a
DateTimereflecting only the Date component of yourDateTimeobject with its time component zero’ed out.