Skip to content
New issue

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

moment.isValid is returning true for day as 0 #6199

Open
harundogan01 opened this issue Jan 10, 2024 · 3 comments
Open

moment.isValid is returning true for day as 0 #6199

harundogan01 opened this issue Jan 10, 2024 · 3 comments

Comments

@harundogan01
Copy link

harundogan01 commented Jan 10, 2024

Hi friends,

Moment.js returning true for 0 as day. Isn't it wrong?
Date Format: YYYY/MM/DD
image

@dishantkapoor
Copy link

image

This is not the issue. It accept only 2 digit day. if you try to use 1 digit it show error : input not handled by moment: 2022/10/0

please check below output

image

So Its Working Fine. 😊

@anshup7
Copy link

anshup7 commented Apr 21, 2024

Seems like this is no more an issue, Can we mark it as closed? @harundogan01

@harundogan01
Copy link
Author

harundogan01 commented Apr 21, 2024

@anshup7 Yes, you can mark as closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants