Thanattha Bussapak

Thanattha Bussapak

  • NA
  • 20
  • 19.4k

Add time Minutes in wp8

Feb 6 2014 10:51 AM
I want to add time 5 minutes in TimePicker. Why the  beginTime is not change?
ex. msg3 = 12:20:00

beginTimePicker.Value = DateTime.Parse(msg3.Replace(":00", ""));
DateTime date = (DateTime)beginDatePicker.Value;
DateTime time = (DateTime)beginTimePicker.Value;
time.AddMinutes(5);

DateTime beginTime = date + time.TimeOfDay;

Answers (1)