Skip to content

引入

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

使用

ts

getDate(): string

参数

no params

返回

number: 当前几号。

示例

js
const day = getDate();
// => '22'