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
{{ message }}
Repository navigation
new Date(year, month) constructor documentation is misleadingΒ #49350
The date constructor documentation gives no indication that the month parameter is zero index based (January is month 0, February is month 1). This can cause off-by-one error bugs that are hard to detect.
π Expected behavior
I expected the documentation to be clear about the type of value expected in the constructor. For example:
Activity
Fix misleading Date constructor documentation (addresses microsoft#49350
Fix misleading Date constructor documentation (addresses microsoft#49350