3
Answers

Compute the timespan between two listbox

Dan Villena

Dan Villena

9y
676
1
Im trying to calculate the timespan between two list box. 
Heres my code....




  DateTime z = DateTime.Parse(listBox2.Items.ToString());
                DateTime c = DateTime.Parse(listBox3.Items.ToString());

                TimeSpan w = c - z;
                listView1.Items.Add(w.ToString());

Answers (3)