title: String a time function c++
body: <p>I need to take a time from a textbox there the time is written like 13:30.
  I want to take two times and read them in minutes exampel: the first time is 13:30 and the second is 14:30 i want to tell them its 60 minutes can anyone help me It looks like this. i don't know maybe you can make a char array and just take the first two and then the last two but i don't quiet know how to make that </p>
  
  <pre><code>for (int i = 0; i &lt; 2 &lt; textBox2-&gt;Text-&gt;Length; i++)
  {
      String^ SamtalsLengdtextBox2 = textBox2-&gt;Text;
      double samtalslengd2 = Convert::ToInt32(SamtalsLengdtextBox2));
      samtalslengd2 = samtalslengd2 * 60;
      textBox2-&gt;Text = Convert::ToString(samtalslengd2);
  }
  
  for (int u = 0; u &lt; 2 &lt; textBox3-&gt;Text-&gt;Length; u++)
  {
      String^ SamtalsLengdtextBox3 = textBox3-&gt;Text;
      double samtalslengd3 = Convert::ToInt32(SamtalsLengdtextBox3));
  }
  </code></pre>