captbaritone / captbaritone/datejs

parseExact misunderstands year 0001-0099 as 1901-1999

Open
#122 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
What is the expected output? What do you see instead?

1. Date.parseExact( "01/01/0001", "dd/MM/yyyy" ) //expect 0001, get 1901
2. Date.parseExact( "01/01/0099", "dd/MM/yyyy" ) //expect 0099, get 1999
3. Date.parseExact( "01/01/0100", "dd/MM/yyyy" ) //correct 0100

What version of the product are you using? On what operating system?
1.0 Alpha-1 on XP

Please provide any additional information below.

```

Original issue reported on code.google.com by `thetoolman` on 20 May 2011 at 2:27

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.