Year()
Convert a date value to the year as a number.
Syntax
Year(<dDate>) --> nYear
Arguments
<dDate> --> is the date value to convert.
Returns
Year() returns the year of the specified date value including the century digits as a four-digit number. Specifying a null/empty date (CTOD("")) returns zero.
Description
Year() is a date conversion function that converts a date value to a numeric year value.
Year() is a member of a group of functions that return components of a date value as numbers. Others includes Day() and Month() which return the day and month values as numbers.
Examples
dDate := CTOD('01/01/00')
Year(dDate)
* Result: 2000
____________________________
Related Topics: