You Can specify the range like this.
disabledRanges = "([
{ rangeEnd : new Date( 2009,10,4 ) }, (RangeEnd: new Date (2009,10,4)),
{ rangeStart : new Date( 2009,10,10 ) } (RangeStart: new Date (2009,10,10))
]}" ]) "
We can get the today date and calculate the difference using the following formula..
disabledRanges="{[ disabledRanges = "([
{ rangeEnd : new Date( new Date().getTime() - 1 * 1000 * 60 * 60 * 24 ) }, (RangeEnd: new Date (new Date (). GetTime () - 1 * 1000 * 60 * 60 * 24)),
{ rangeStart : new Date( new Date().getTime() + 7 * 1000 * 60 * 60 * 24 ) } (RangeStart: new Date (new Date (). GetTime () + 7 * 1000 * 60 * 60 * 24))
]}" ]) "
/>
You can use such methods to color holidays in Action Script
View the demo
No comments:
Post a Comment