I want to pass a DateTime object to a method of mine .
now i have a datepicker and a timepicker
How do i make the time of the returned value of datepicker into the time from timepicker.
Currently i have this , but it doesn't work.
now i have a datepicker and a timepicker
How do i make the time of the returned value of datepicker into the time from timepicker.
Currently i have this , but it doesn't work.
DateTime? date = new DateTime(); |
date = rdpDate.SelectedDate; |
//date.Value.AddSeconds(rtpTime.SelectedTime.Value.Seconds); |
//date.Value.AddMinutes(rtpTime.SelectedTime.Value.Minutes); |
//date.Value.AddHours(rtpTime.SelectedTime.Value.Hours); |
//date.Value.t |
//date.Value.AddHours(Double.Parse(rtpTime.SelectedTime.Value.Hours.ToString())); |
//date.Value.ToShortDateString(); |
date.Value.Date.AddHours(rtpTime.SelectedTime.Value.Hours); |