Skip to content

what's the point of YearTwoDigits #52

@safareli

Description

@safareli

If YearTwoDigits is used and we have 95 as input string, it would be parsed to date where year is 95, is it expected? I think most users will expect to get 1995.
i.e. it should work like JS, for example:
new Date(Date.UTC(95,1,1)).getUTCFullYear() // => 1995
but:
new Date(Date.UTC(-17,1,1)).getUTCFullYear() // => -17

Either parsing should have side effect of looking at current century to have similar behavior or otherwise having YearTwoDigits has almost no point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions