DAYOFMONTH(date) returns the day of the month for a given date. : DAYOFMONTH : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » DAYOFMONTH »

 

DAYOFMONTH(date) returns the day of the month for a given date.


mysql>
mysql> SELECT DAYOFMONTH(20000201);
+----------------------+
| DAYOFMONTH(20000201|
+----------------------+
|                    |
+----------------------+
row in set (0.00 sec)

mysql> SELECT DAYOFMONTH('00-02-01');
+------------------------+
| DAYOFMONTH('00-02-01') |
+------------------------+
|                      |
+------------------------+
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
» DAYOFMONTH