Skip to main content



SecondDiff Function

The SecondDiff function returns the number of seconds between two DateTime values.

Syntax​

SecondDiff(start, end)

The SecondDiff function returns the number of seconds between two DateTime values.

Arguments​

start DateTime - The starting DateTime expression.

end DateTime - The ending DateTime expression.

Remarks​

Example:

SecondDiff("1/28/2005 9:43:59 AM", "1/29/2005 9:45:59 AM"); // returns 86520