appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: Date picker widget says dates before 1921 are out of range

Open AS-Laguna opened this issue 3 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

When I set the default date of a date picker widget to a date before 1921 the widget says it's out of range.

I expect the date picker to display whatever date I give it.

Steps To Reproduce

  1. D&D a Date picker widget onto the canvas
  2. Try to set the default date to Dec 31, 1920 (e.g. "12-31-1920")
  3. Observe that it is out of range.

Public Sample App

No response

Issue video log

No response

Version

Cloud 1.8.11

Front logo Front conversations

AS-Laguna avatar Dec 05 '22 20:12 AS-Laguna

@AS-Laguna Can we ask the user to specify the minimum date range to get unblocked. Seems like by default , it take up-to 100 years . If your input can be beyond that, you have to set that range in the min/max property . let me know if this unblocks the user

kamakshibhat-appsmith avatar Dec 06 '22 07:12 kamakshibhat-appsmith

This is a limitation of all modern date pickers that they usually work 100 years before and after the current date as Kamakshi pointed.

@AS-Laguna is there a use-case which the user has, if not then i don't think this is relevant

dilippitchika avatar Dec 08 '22 16:12 dilippitchika

Stats

Stat Values
Reach 12
Effort (months) 0.5

dilippitchika avatar Mar 02 '23 12:03 dilippitchika