DatePickerDialog incorrectly enforcing a minimum date of Jan 1, 1970

前端 未结 4 1743
星月不相逢
星月不相逢 2021-01-04 20:30

We have a member reporting that he is unable to set a date before Jan 1, 1970 on our DatePickerDialog. This issue does not repro for us.

I am already aware that the

4条回答
  •  自闭症患者
    2021-01-04 21:13

    I see you already tried something similar, but have you tried setting the following:

    android:startYear="1900"
    

    directly on the DatePicker XML?

    Like so:

    
    

    Reference: http://kevsaidwhat.blogspot.com/2011/10/fun-with-android-datepicker-and-1970.html

提交回复
热议问题