Date.prototype.getUTCMonth()
Date 实例的 getUTCMonth() 方法根据世界时间返回该日期的月份,作为从零开始的值(其中零表示一年中的第一个月)。
¥The getUTCMonth() method of Date instances returns the month for this date according to universal time, as a zero-based value (where zero indicates the first month of the year).
Try it
语法
参数
返回值
示例
使用 getUTCMonth()
规范
| Specification |
|---|
| ECMAScript Language Specification # sec-date.prototype.getutcmonth |
浏览器兼容性
BCD tables only load in the browser