RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.CurrentYear Function

Returns the current year.

Pascal
function CurrentYear: Word;
C++
Word CurrentYear();

SysUtils

CurrentYear returns the current year on the Gregorian calendar. The value returned is the complete four-digit year. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!