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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the bug dayjs function ignores provided format.
let test = dayjs('12/01/1996', 'DD/MM/YYYY') console.log(test.format()) // "1996-12-01T00:00:00+03:00"
Expected behavior Expected result is "1996-01-12T0:00:00+03:00"
"1996-01-12T0:00:00+03:00"
Information
jsfiddle
The text was updated successfully, but these errors were encountered:
I have the same issue
let test = dayjs('03-04-2024', 'DD-MM-YYYY'); console.log(test.toDate()); // 2024-03-04T03:00:00.000Z // the correct is 2024-04-03T03:00:00.000Z
Sorry, something went wrong.
Did you import custom-parse-format?
Custom parse format not working correctly.
const date = dayjs("13-12-1999", { format: "DD-MM-YYYY" }, true); // treats 13 as month
Check this: https://runkit.com/embed/w7op0120g88z
No branches or pull requests
Describe the bug
dayjs function ignores provided format.
Expected behavior
Expected result is
"1996-01-12T0:00:00+03:00"
Information
jsfiddle
The text was updated successfully, but these errors were encountered: