elData(element, 'min-date', '100');
elData(element, 'max-date', 'now');
}
+ else {
+ if (element.min) elData(element, 'min-date', element.min);
+ if (element.max) elData(element, 'max-date', element.max);
+ }
this._initDateRange(element, now, true);
this._initDateRange(element, now, false);
throw new Error("Reference date picker identified by '" + value + "' does not exists (element id: '" + element.id + "').");
}
}
+ else if (/^\d{4}\-\d{2}\-\d{2}T/.test(value)) {
+ value = new Date(value).getTime();
+ }
else {
value = new Date((isMinDate ? 1970 : 2038), 0, 1).getTime();
}