Andrey Bykiev

Results 271 comments of Andrey Bykiev

Hi, you should extend dayjs by [CustomParseFormat](https://day.js.org/docs/en/plugin/custom-parse-format) plugin. In second console.log input string with custom format cannot be parsed without specifying the format

Hi, I've tried to reproduce the issue with this [demo](https://codesandbox.io/s/dayjs-playground-forked-oefnzd?file=/src/index.js), but I can't, can you please modify the demo to show the issue?

Can anybody try to fork and modify this [demo ](https://codesandbox.io/s/dayjs-playground-forked-07weil?file=/src/index.js) to reproduce the issue? I can't reproduce this too.

@iamkun, what do you think about it? The first look to the issues (400+) will scare the newbies, as they will think it's a buggy lib, but most of them...

Hi, I did a sandbox and was unable to reproduce the issue, did you imported advancedFormat plugin? ``` var advancedFormat = require('dayjs/plugin/advancedFormat') dayjs.extend(advancedFormat) ``` here is a [demo](https://codesandbox.io/s/dayjs-playground-forked-07weil?file=/src/index.js)

what is your version of dayjs?

> In my peoject this.$locale has 3 properties it's ok, https://github.com/iamkun/dayjs/blob/master/src/locale/en.js

It comes from [advancedFormat](https://github.com/iamkun/dayjs/blob/c0e8e6cddf671a30b0ad8130edfe607add3a4137/src/plugin/advancedFormat/index.js#L26) plugin

The same issue is described in #1891

Hi, the issue was already discussed [here](https://github.com/iamkun/dayjs/issues/1251) As `new Date('1-Jul')` will return 2001 year too, dayjs will return 2001 to deliver the same behavior.