iamkun / iamkun/dayjs

dayjs().isValid() how to use

Open
#306 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

`dayjs()` 返回当前系统时间
`dayjs().isValid();` 肯定为true
那么传入一个参数呢?
`dayjs(‘2018-08-107’).isValid();`
`dayjs(‘2018-13-01’).isValid();`
`dayjs(‘1-10-01’).isValid();`
结果都是true!

是我打开方式不对吧 “...“

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.