Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2978] Android Feature Request: DatePickerDialog min/max Date Support

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-06-28T13:41:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.0.1
ComponentsAndroid
Labelsqe-port
ReporterAlan Leard
AssigneeNeeraj Gupta
Created2011-04-15T03:34:03.000+0000
Updated2015-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.

Comments

  1. Junaid Younus 2012-06-28

     
       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();
       
    Above code seems to work fine on the iOS simulator and on a Samsung Galaxy S2, using TiSDK 2.0.2GA. Ticket closed.
  2. Satyam Sekhri 2012-08-29

    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)
  3. Ygor Lemos 2013-07-31

    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.
  4. Joseph Sachs 2015-04-15

    minDate on Android dosen't Work. Ti SDK 3.5.1.GA

JSON Source