-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
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
Labels
No labels