Dan Villena

Dan Villena

  • NA
  • 3
  • 1.1k

Compute the timespan between two listbox

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