Visual Basic: Calculate time difference between two datetimes in minutes

Platform:Visual Basic
Task:Calculate time difference between two datetimes in minutes
Discussion:
Calculate time difference between two datetimes in minutes
Example:
Dim StartTime As DateTime = WindowRow.Cells("StartTime").Value
                    Dim EndTime As DateTime = WindowRow.Cells("EndTime").Value
                    WindowRow.Cells("ElapsedTime").Value = DateDiff(DateInterval.Minute, StartTime, EndTime)
Back to Index