Datetime.Year

Parent Previous Next

Datetime.Year.

Returns the year as a value between 1 and 9999.


Syntax.


 Year() : Integer

 


Example:


 Datetime dtNow.SetNow();

 Integer year := dtNow.Year();