dayjs
dayjs copied to clipboard
Error in parsing array format date
Describe the bug
import dayjs from 'dayjs'
import arraySupport from 'dayjs/plugin/arraySupport'
dayjs.extend(arraySupport)
use:
dayjs([2010, 1, 14]).format('YYYY/MM/DD')) return 2010/02/14
Expected behavior
dayjs([2010, 1, 14]).format('YYYY/MM/DD')) return 2010/01/14
Information
- Day.js Version 1.11.8
- OS: Mac OS
- Browser: Google Chrome v115
- Time zone: Eastern Daylight Time
I also noticed similar behavior about parsing dates yesterday with the format: "DD.MM.YYYYTHH:mm:ss:SSS" . Is this going to be fixed, or should we switch again to another library ?