YearDiff Function

  • Updated

The YearDiff function returns the number of years between two Date values.

Syntax

 

The YearDiff function returns the number of years between two Date values.

 

YearDiff(start, end)

 

 

Arguments:

 

 

 

start

DateTime - The starting Date or DateTime expression.

 

 

end

DateTime - The ending Date or DateTime expression.

Remarks

  • Example: YearDiff("5/1/2000", "6/1/2001") returns 1.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.