dayjs
dayjs copied to clipboard
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
**Describe the bug** https://codesandbox.io/s/adoring-estrela-ptj5o1?file=/src/index.js **Expected behavior** 期望解析 '2022-29th' 这类字符串能得到正常的数据 **Information** - Day.js Version [e.g. v1.0.0] - OS: [e.g. iOS] - Browser [e.g. chrome 62] - Time zone: [e.g. GMT-07:00 DST...
**Describe the bug** Use the latest version of dayjs ``` dayjs('2016年10月11日', 'YYYY年MM月DD日') ``` result `M {$L: 'en', $d: Invalid Date, $x: {…}, $y: NaN, $M: NaN, …}` but in 1.8.21...
fix type error that can’t use "isoWeek" as type in isSameOrBefore/isSameOrAfter plugin In `isSameOrBefore/isSameOrAfter` plugin, they just use `isSame`, `isAfter` and `isBefore` function, these functions all use `ISOUnitType` as unit...
`const now = dayjs(); // e.g. 'HH:mm' is 17:37` But what I want to modify the object to snap to `17:30` or `17:45`. Is there a way to do it?...
**Describe the bug** When I try to format the date to show ordinal for date it breaks the app and shows error r.ordinal is not a function. Code: import dayjs...
Dayjs is a great library used by many programmers. As a consequence you get a lot of feedback in the issues and pull request sections on github that will require...
TypeError: r.ordinal is not a function
**Describe the bug** dayjs('1-Jul') get an wrong result Sat, 30 Jun 2001 16:00:00 GMT **Expected behavior** Thu, 30 Jun 2022 16:00:00 GMT **Information** - Day.js Version [e.g. v1.0.0] - OS:...
**Describe the bug** In our date field, formats including MMM and MMMM cause the `dayjs(value, format, strict=true).isValid()` to return false for all values.  **Expected behavior** `IsValid()` should return true...
**Describe the bug** `weekdays` returns `weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_")` on all instances of `en` locale **Expected behavior** `weekdays` returns `weekdays:"Monday_Tuesday_Wednesday_Thursday_Friday_Saturday_Sunday".split("_")` for all instances of en locale that aren't the US. Not everyone in...