3
Reply

Compute the timespan between two listbox

Dan Villena

Dan Villena

Mar 1 2015 12:43 AM
654
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)