Skip to content

YEAR ​

Returns the year from the specified date expression.

Reporting Area(s) ​

General

Required Parameters ​

  1. Date field (i.e. cobegdate,coenddate)

--OR--Date Expression (i.e. [09/01/2015)]

--OR--DATE() function (which returns current date)

Optional Parameters ​

None

Example(s) ​

YEAR(coenddate) returns the year of the course end date (i.e. 2015)

YEAR(DATE()) returns the year of the current date (i.e. 2015)

Standard FoxPro function.

CDOW
CMONTH
DATE
DTOC
TRIMDATE
MONTH