PDA

View Full Version : Default date 1970 populating in data picker



bkrishsun
15 Feb 2013, 7:19 AM
Default date 1970 is displayed in date picker , how to avoid to display the default date.

sword-it
15 Feb 2013, 7:43 AM
Hi,

try following code :




var datePicker = Ext.create('Ext.picker.Date',{
value:new Date()
});


Ext.Viewport.add(datePicker);
datePicker.show();

bkrishsun
16 Feb 2013, 2:05 AM
Thanks for your reply,

even though the same problem occur , the default date is displayed in the datepicker(1970).

bkrishsun
18 Feb 2013, 1:31 AM
We are using Date Picker in dyanamic that is at the run we are able to add or delete Date picker when click on the Add button.