Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Cannot select pre-100 years #4032

Closed
vilmosioo opened this issue Jul 28, 2015 · 0 comments
Closed

Cannot select pre-100 years #4032

vilmosioo opened this issue Jul 28, 2015 · 0 comments

Comments

@vilmosioo
Copy link

  • Angular 1.3.13
  • Angular bootstrap 0.13.0

Cannot select date before 101. Manually typing year 1 (even with correct formatting) leads to an incorrect model value. This is due to the fact that

new Date(1, 7, 7) // is 7th July 1901
new Date("0001-07-07") // is 7th of July 1

Can be replicated on the demo page. Try selecting any date pre-100.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants