8000 Incorrect addition of months · Issue #17 · sunmockyang/date-calculator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Incorrect addition of months #17

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

Open
TryHackX opened this issue Oct 21, 2022 · 0 comments
Open

Incorrect addition of months #17

TryHackX opened this issue Oct 21, 2022 · 0 comments

Comments

@TryHackX
Copy link

Try it:
12/30/2015
+2 mon

Result :
March 1st, 2016
December 30th, 2015 +2 months

When +3 mon is
March 1st, 2016
December 30th, 2015 +2 months

Basically, I already know what the problem is:
At a time when a start month is, If the number of days in the starting month is greater than the number of days in the calculated month, the month jumps one higher.

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

1 participant
0