year
Description
Returns the year of the date in integer.
Usage
Client side: Y
Server side: Y
Syntax
Integer year(Date date)
Argument
date
The date to be calculated. The argument can by any date type data.
Return
Returns the year of the date in integer.
Example
year(2011-12-30)
returns 2011
See also