[TIMOB-2978] Android Feature Request: DatePickerDialog min/max Date Support
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-06-28T13:41:48.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 2.0.1 |
| Components | Android |
| Labels | qe-port |
| Reporter | Alan Leard |
| Assignee | Neeraj Gupta |
| Created | 2011-04-15T03:34:03.000+0000 |
| Updated | 2015-04-15T13:51:45.000+0000 |
Description
Ticket Reference: http://developer.appcelerator.com/helpdesk/view/68671">http://developer.appcelerator.com/helpdesk/view/68671
User would like minDate and maxDate support added to DatePickerDialog.
Above code seems to work fine on the iOS simulator and on a Samsung Galaxy S2, using TiSDK 2.0.2GA. Ticket closed.var win = Ti.UI.createWindow({ backgroundColor: 'white' }); var picker = Ti.UI.createPicker({ type: Ti.UI.PICKER_TYPE_DATE, minDate: new Date(2012,0,1), maxDate: new Date(2013,11,31), value: new Date(2012,4,12), top:50 }); win.add(picker); win.open();Date Picker min/max working. Verified on: Titanium Studio: 2.1.2.201208281351 Titanium SDK: 2.2.0.v20120828153312 Android Device: Samsung Note (v2.3)
minDate and maxDate parameters are NOT working on Android with Ti SDK 3.1.1.GA and tool-api-level 14 Please reopen this ticket. ps: it won't work if you use the Date Picker together with the showDatePickerDialog() method. It just ignores the min/max dates parameters.
minDate on Android dosen't Work. Ti SDK 3.5.1.GA