Skip to content

引入 ​

js
import { getMonth } from "grantlibs";
或;
const { getMonth } = require("grantlibs");
获取当前月份

使用 ​

ts

getMonth(): string

参数 ​

no params

返回 ​

number: 当前月份。

示例 ​

js
const month = getMonth();
// => '03'