Opened 16 years ago

Closed 15 years ago

#1854 closed enhancement (wontfix)

Dynamically updating DatePicker

Reported by: guest Owned by: bill
Priority: low Milestone: 0.9
Component: Widgets Version: 0.4
Keywords: Cc:
Blocked By: Blocking:


Can we add these methods (or similiar)

setStartDate: function(/*Date|String*/dateObj) {

if (typeof dateObj=="string") {

this.startDate =;

} else {

this.startDate = dateObj;

} this.startDate.setHours(0,0,0,0); adjust startDate to be exactly midnight


setEndDate: function(/*Date|String*/dateObj) {

if (typeof dateObj=="string") {

this.endDate =;

} else {

this.endDate = dateObj;

} this.endDate.setHours(24,0,0,-1); adjusting endDate to be a fraction of a second before midnight


Change History (3)

comment:1 Changed 16 years ago by bill

Is there a reason that you need to change these values dynamically, rather than setting them when you instantiate the widget?

What if the current value of the widget is Oct 31, 2006, but then you set the end date to Sept 30, 2006?

comment:2 Changed 16 years ago by alex

Milestone: 0.5
Type: defectenhancement

comment:3 Changed 15 years ago by Adam Peller

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.