# Modifying disabledRanges Value

**URL:** <https://forum.kirupa.com/t/modifying-disabledranges-value/280350>\
**Category:** flash\
**Created:** [January 26, 2009, 5:16pm UTC](https://forum.kirupa.com/t/modifying-disabledranges-value/280350 "2009-01-26T17:16:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sk8er5960](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sk8er5960](https://forum.kirupa.com/u/sk8er5960)\
**Post date:** [January 26, 2009, 5:16pm UTC](https://forum.kirupa.com/t/modifying-disabledranges-value/280350/1 "2009-01-26T17:16:51Z")

</div>

I was wondering if anybody knew how to append the disabledRanges property of the dateChooser Component, kinda like this(assuming cal as the instance name):

_dRange = [{rangeStart: new Date(2009,0,0), rangeEnd: new Date(2009,0,20)}];  
cal.disabledRange = dRange; // will disable all up to the 20th_

I want to turn _dRange_ into:  
\*dRange = [{rangeStart: new Date(2009,0,0), rangeEnd: new Date(2009,0,20)},{rangeStart: new Date(2009,0,22), rangeEnd: new Date(2009,0,31)}];  
cal.disabledRange = dRange; // will disable all up to the 20th then all the dates past the 21st effecively disabling all dates but the 21st  
\*  
something like:

\*dRange += [{my new dates…}]; \*

…But that doesn’t work
