You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptsrc="https://unpkg.com/dayjs@1.11.4/dayjs.min.js"></script><scriptsrc="https://unpkg.com/dayjs@1.11.4/plugin/weekOfYear.js"></script><scriptsrc="https://unpkg.com/dayjs@1.11.4/plugin/weekYear.js"></script><scriptsrc="https://unpkg.com/dayjs@1.11.4/plugin/advancedFormat.js"></script><scriptsrc="https://unpkg.com/dayjs@1.11.4/plugin/customParseFormat.js"></script><script>dayjs.extend(window.dayjs_plugin_advancedFormat)dayjs.extend(window.dayjs_plugin_customParseFormat)dayjs.extend(window.dayjs_plugin_weekOfYear)dayjs.extend(window.dayjs_plugin_weekYear)vardate=dayjs("2022-31","YYYY-ww").toDate()console.log(date);// Sat Jan 01 2022 00:00:00 GMT+0800 (中国标准时间)console.log(dayjs(date).format('YYYY-ww'));// 2022-01</script>
Describe the bug
Expected behavior
Information
The text was updated successfully, but these errors were encountered: