iamkun
iamkun
@alexsorokoletov THX, you can use the latest version of Day.js which has reverted this error change.
v2.0 branch https://github.com/iamkun/dayjs/tree/next
toString will do the exactly same as `(new Date()).toString()` according to your system locale setting
try import dayjs from 'dayjs/esm';
This is a conflict between our es export vs ts export and seems there no way to fix this until we make a breaking change release to make it export...
Well, at present no plan I am afraid.
Seems a nice choice. We'll think about that.
Looks ok. https://runkit.com/embed/2p2231hs3lji
will this is a new concept to me. What's the year '0000' stand for, pls?
Oh, I see, because Day.js use new Date(1, 0, 0) to init the date and it results in 1901-1-1