We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
取week的时候,日期错误,例如dayjs().week(1),结果错误 dayjs("2022-8-8").week(1).format("YYYY-MM-DD") //2021-12-27 dayjs("2022-8-9").week(1).format("YYYY-MM-DD") //2021-12-28
dayjs().week(1)
dayjs("2022-8-8").week(1).format("YYYY-MM-DD") //2021-12-27
dayjs("2022-8-9").week(1).format("YYYY-MM-DD") //2021-12-28
The text was updated successfully, but these errors were encountered:
Hi, week() function is locale specific, so you should import your locale before. Here is a demo with Russian locale.
week()
Sorry, something went wrong.
@zhangqh22 please refer to @Bykiev 's explanation
多谢,thank you too much
No branches or pull requests
取week的时候,日期错误,例如
dayjs().week(1)
,结果错误dayjs("2022-8-8").week(1).format("YYYY-MM-DD") //2021-12-27
dayjs("2022-8-9").week(1).format("YYYY-MM-DD") //2021-12-28
The text was updated successfully, but these errors were encountered: