The MONTH() function returns the month part for a given date (a number from 1 to 12).
MONTH(
date)
Parameter | Description |
---|---|
date | Required. The date or datetime to extract the month from |
Works in: | From MySQL 4.0 |
---|
Return the month part of the current system date:
SELECT MONTH(CURDATE());
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!