Skip to content

Problem about Check for leap year #29

Open
@ysgtool

Description

@ysgtool

Hi:
I learn programming only a few time.
When I use Date.pase() to check if a datestring is valid. I found it can't check leap year correctly . So I view some content of the date-utils.js file. I find there are some places with the code like (month === n) where the month is a string and n a number. I wonder if their type need to be converted the same. So I ask some help.
Please forgive me for my bad english.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions