YEARWEEK(date), YEARWEEK(date,mode) returns year and week for a date. : YEARWEEK : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » YEARWEEK »

 

YEARWEEK(date), YEARWEEK(date,mode) returns year and week for a date.


The mode could be 0 ,1 ,2 ,3 ,4 ,5 ,6 ,7.

mysql>
mysql> SELECT YEARWEEK('1987-01-01');
+------------------------+
| YEARWEEK('1987-01-01') |
+------------------------+
|                 198652 |
+------------------------+
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
» YEARWEEK