usually when I have timepicker and datePicker on winform I combine them into a single date object using the new DateTime constructor (y, m, d, h, mi, s). it seems rather long, and I was wondering what approach others use if it comes up against this situation.
DateTime date =
new DateTime(DatePicker.Value.Year, DatePicker.Value.Month, DatePicker.Value.Day,
TimePicker.Value.Hour, TimePicker.Value.Minute, TimePicker.Value.Second);

looks like simple.
DateTime date = DatePicker.Value.Date.Add(TimePicker.Value.TimeOfDay);
I did not realize that
source
share