HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Return the day of the month for a date
The DAY() function returns the day of the month for a given date (a number from 1 to 31).
DAY(date)
Parameter | Description |
---|---|
date | Required. The date to extract the day from |
Works in: | From MySQL 4.0 |
---|
Return the day of the month for a date:
SELECT DAY("2017-06-15 09:34:21");
Return the day of the month for the current system date:
SELECT DAY(CURDATE());