show / hide menu

TimeDiff

This function can be used to calculate the time difference between two specified time.

Syntax:
TimeDiff(StartDateTime,EndDateTime,DateTimeFormat)

Examples:
Label6.Value=TimeDiff(DateTimePicker1.Value, DateTimePicker2.Value,”M/d/yyyy h:mm tt”)