flex 日期 disabledRanges 中文
package com.thams.component.datefield
{
import mx.controls.DateField;
public class ExtendedDateField extends DateField
{
public function ExtendedDateField()
{
super();
this.dayNames = ["日", "一", "二", "三", "四", "五", "六"];
this.monthNames=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"];
this.formatString = "YYYY-MM-DD";
}
}
}
?
<datefield:ExtendedDateField ?id="startTime" text="XXXXX" formatString="YYYY-MM-DD"
?disabledRanges="{[{rangeEnd: new Date( new Date().getUTCFullYear() , new Date().monthUTC , new Date().dateUTC -1)}]}"/>