Open VyacheslavAS opened 3 years ago
Please check the example by sandbox link
formatDate
parseDate
moment
minDate
new Date("0001-01-01T00:00:00.000Z")
The date picker displays "1901" in the year select field and the day is not highlighted
The date picker displays "1" in the year select field or "0001" and the picked day highlighted
The input field displays "1912-01-01" and the date picker displays "1912" in the year select field
The input field displays "0012-01-01" and the date picker displays "12" in the year select field or "0012"
Acknowledging this is a bug, but it's low priority since that sounds like a rare use case. Most people are picking dates within 100 years of today. Related: https://github.com/palantir/blueprint/issues/877
Environment
Code Sandbox
Please check the example by sandbox link
Preliminary steps which are performed in the example:
formatDate
andparseDate
attributes usingmoment
(moment
returns expected result)minDate
asnew Date("0001-01-01T00:00:00.000Z")
scenario 1:
Steps to reproduce
Actual behavior
The date picker displays "1901" in the year select field and the day is not highlighted
Expected behavior
The date picker displays "1" in the year select field or "0001" and the picked day highlighted
scenario 2:
Steps to reproduce
Actual behavior
The input field displays "1912-01-01" and the date picker displays "1912" in the year select field
Expected behavior
The input field displays "0012-01-01" and the date picker displays "12" in the year select field or "0012"