year()

This function returns the year of date a.

Parameters


Parameter

Description

a

Date.


Examples


Parameter a

Result

2005-01-05 08:20:12

2005

2005-01-05

2005