Appearance
@pmun/utils / createDate
function createDate(date?): Dayjs;
创建 dayjs 对象
日期参数,可以是日期对象、时间戳或日期字符串
DateLike | Dayjs
DateLike
Dayjs
dayjs 对象
createDate() // 当前日期时间 createDate('2023-05-15') // 指定日期 createDate(1684123456000) // 时间戳