System.DateTime

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

What would be the best way to know how many minute are between two DateTime
values ?
I tried DateTime1-DateTime2, but it doesn't work.

Thanks,
Ali
 
Sure it does, with a little adjustment, try:

Dim ts As TimeSpan = DateTime1 - DateTime2

Dim minutes As Integer = ts.Minutes

HTH
Brian W
 
Back
Top