Date.month

Date.month

Date.month

功能

读取月份。

语法

参数

无参数。

返回值

类型说明
Int返回 1 到 12 的月份。

示例

注意事项

  • 按本地时区日期读取。