YEAR(date) returns the 4-digit numeric year of a given date : YEAR : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » YEAR »

 

YEAR(date) returns the 4-digit numeric year of a given date


mysql>
mysql> SELECT YEAR('01/12/25 11:00:00');
+---------------------------+
| YEAR('01/12/25 11:00:00') |
+---------------------------+
|                      2001 |
+---------------------------+
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