Icon YearOf

Unit: Internal

Available In: Client and Server Applications

function YearOf(Value: DateTime; UTC: Boolean=False): Integer

The YearOf function returns the year number of the input parameter in local or UTC time. The return value is an Integer value.

Examples

X := YearOf(Date);  // X is 2012 (assuming a date of 02/13/2012)
Image