title: Date and Time Difference in Minutes
body: <p>Is there any way to Display the difference between 2 different times. I currently have 2 buttons. </p>
  
  <pre><code>Sub AddButtonClick(sender As Object, e As EventArgs)
  
      StartTime.Text = DateTime.Now.ToString()
  
  End Sub
  </code></pre>
  
  <p>This generates the first timestamp</p>
  
  <pre><code>Sub EndBreakClick(sender As Object, e As EventArgs)
  
      EndTime.Text = DateTime.Now.ToString()
  
      DateDiff(DateInterval.Minute, Endtime, StartTime)
  End Sub
  </code></pre>
  
  <p>This generates the second timestamp but the datediff line causes the app to crash as soon as I press the button. </p>