DAY() in MySQL — How It Works
What the MySQL DAY() function does, with an example.
Published October 20, 2026
DAY() extracts the day of the month from a date value.
Key points
- Part of standard SQL functions available in MySQL for working with dates and times
Example
SELECT DAY(created_at) FROM orders;