Skip to main content



HourDiff Function

The HourDiff function returns the number of hours between two DateTime values.

Syntax

HourDiff(start, end)

The HourDiff function returns the number of hours between two DateTime values.

Arguments

start DateTime - The starting DateTime expression.

end DateTime - The ending DateTime expression.

Remarks

Example:

HourDiff("1/28/2005 9:43:51 AM", "1/28/2005 3:43:51 PM"); // returns 6