davecoffin / nativescript-modal-datetimepicker

Apache License 2.0
59 stars 36 forks source link

How to select dates before 1900? #87

Closed mreall closed 3 years ago

mreall commented 3 years ago

If the demo apps cannot help and there is no issue for your problem, tell us about it

The date picker only allows me to select dates back to 1900. Is there a way to get it to go earlier?

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Open the date picker as described in the documentation, then try to scroll to a year before 1900.

mreall commented 3 years ago

The [default minimum date](https://developer.android.com/reference/android/widget/DatePicker#getMinDate()) is 1900-01-01. This can be overridden by passing in an earlier date to the minDate property, e.g. new Date(1500, 1, 1)