此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
备注
访问此页面需要授权。 可以尝试登录或更改目录。
访问此页面需要授权。 可以尝试更改目录。
从日期/时间获取月份号。
另一个别名:monthofyear()
getmonth(date)
getmonth(
)
一个介于 1-12 之间的整数,表示包含给定日期的月份。
运行查询
print month = getmonth(datetime(2015-10-12))