RAD function: year

A RAD function that returns the full year for a date, regardless of the date format.

Function

year

Format

$fyear=year($date)

Parameters

The following parameter is valid for the year function:

Parameter Data type Description
$date Date/time The date and time value.

Example

$fyear=year('2/15/05')

After execution, the value of $fyear is 2005.