YEAR(date) returns the year for date, in the range 1000 to 9999, or 0 for the 'zero' date. : YEAR : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » YEAR »

 

YEAR(date) returns the year for date, in the range 1000 to 9999, or 0 for the 'zero' date.


mysql>
mysql> SELECT YEAR('98-02-03');
+------------------+
| YEAR('98-02-03') |
+------------------+
|             1998 |
+------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Date Time Functions
» YEAR