Open qiphon opened 10 months ago
Describe the bug console.log(dayjs.utc(dayjs(), 'YYYY'));
result
M $D: NaN $H: NaN $L: "en" $M: NaN $W: NaN $d: Invalid Date {} $isDayjsObject: true $m: NaN $ms: NaN $s: NaN $u: true $x: {} $y: NaN
dayjs@1.11.10
What is 'YYYY' used for? If you want to print the year, use the .format() method.
dayjs.utc().format('YYYY')
Describe the bug console.log(dayjs.utc(dayjs(), 'YYYY'));
result
dayjs@1.11.10