void OnDateSet(object sender, TimePickerDialog.TimeSetEventArgs e) { DateTime current = DateValue; DateValue = new DateTime(current.Year, current.Month, current.Day, e.HourOfDay, e.Minute, 0); }