Returns the year for the date specified.
year( date )
date: (Date) The date from which the year is extracted.
Integer
You can experiment with this function in the test box below.
Test Input
TEST
Test Output
year(date(2011,2,28)) returns 2011
year(date(2011,2,28))
2011
On This Page