Skip to content

DatePicker providing only two digits for the year input is parsed to 19_ _ instead of 20_ _ #8475

@mmart1n

Description

@mmart1n

Description

A customer is using a DatePicker in dropdown mode with the default mask. When entering a shorter year such as 5/17/20 it first looks right, but instead of using the current year it uses the year 1920.

  • igniteui-angular version: 10.2.x, 9.1.x
  • browser: any

Steps to reproduce

  1. Open the following sample: https://stackblitz.com/edit/github-datepikcer-two-digit-year
  2. Enter the following value: 06/15/21
  3. Click outside the datePicker

Result

The created date is 06/15/1921

Expected result

The created date should be 06/15/2021

Attachments

Attach a sample if available, and screenshots, if applicable.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions