return this.hasAttribute("readonly"); if (val) this.setAttribute("readonly", "readonly"); else this.removeAttribute("readonly"); if (this.focusedDay == -1) return null; return new Date(this.year, this.month - 1, this.currentDay); return this._selectedDate; // if passed date is empty or invalid then we use today date. if (!val || String(val) == this.invalidDate) val = new Date(); this._selectedDate = val; if (!this.isSelectedDate()) this.setDate(this.selectedYear, this.selectedMonth, this.selectedDay); else this.refresh(this.selectedDay, true); return new Date(this.year, this.month - 1, 1).getDay(); var event = this.ownerDocument.createEvent("Events"); event.initEvent("change", true, false); this.dispatchEvent(event); null String(new Date(undefined))