Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Year value always starts at 1900 if 2 digits for the year is used #312

Open
leolorenzoluis opened this issue Feb 20, 2018 · 2 comments
Open

Comments

@leolorenzoluis
Copy link

leolorenzoluis commented Feb 20, 2018

Bug, feature request, or proposal:

Year value always starts at 1900

What is the expected behavior?

Set a certain threshold like -/+ 50 of the current year to be the value when 2 digits for the year is used

What is the current behavior?

It always starts at 19+{2 digit value}

What are the steps to reproduce?

  1. Open a date picker
  2. Type in 1/1/1
  3. Value is Jan 01 1901 13:15:14 GMT-0500 (EST)

What is the use-case or motivation for changing an existing behavior?

Angular Material Date Picker does this.

Which versions of Angular, MD2, OS, browsers are affected?

Latest version

Is there anything else we should know?

@aford22
Copy link

aford22 commented Feb 26, 2018

Same here. Only an issue if you amend the date manually by typing. If you use the graphical picker this bug doesnt happen

@Sanjaygpatel
Copy link

same here,

is there any update till now ?

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

No branches or pull requests

3 participants