Skip to main content



DayDiff Function

The DayDiff function returns the number of days between two Date values.

Syntax​

DayDiff(start, end)

The DayDiff function returns the number of days between two Date values.

Arguments​

start DateTime - The starting Date or DateTime expression.

end DateTime - The ending Date or DateTime expression.

Remarks​

Example:

DayDiff("5/1/2000", "6/1/2000"); // returns 31