PDA

View Full Version : DataPicker set Today



edolillo
4 Oct 2011, 10:21 AM
How I can put my datePickerField in TODAY when I open this... ?
....
xtype : 'datepickerfield',
id : 'idBirthDate',
picker : {
yearFrom: 1900,
yearTo:new Date().getFullYear(),
value : new Date(),
}....
the value is ok, but i want to show in the screen too.

thanks


Eduardo

thomsonzh
4 Oct 2011, 7:47 PM
var TodaysDate = new Date();

value: TodaysDate,

edolillo
5 Oct 2011, 6:03 AM
Ok ...I found my fault..I had form.reset() when I start my program.....
:))