After some testing I figured it out.
I just put it in my init() function, which is called on
creationComplete of the module as such:
yesterday.setTime(today.getTime() - (1*millisecondsPerDay));
ckProcDate.disabledRanges = [{rangeEnd: yesterday }];
And that works.
--- In [email protected], "David C. Moody" <[EMAIL PROTECTED]>
wrote:
>
> I'm trying to set a DateField's disabledRanges to yesterday and
> before.
>
> Everything I have tried will not do this, I can disabled today and
> before but I need to include today.
>
> Does anyone have any ideas?
>
> here's all I've tried:
>
> Assign yesterday's date to a yesterday variable.
>
> disabledRanges="{[{rangeEnd: yesterday }]}"
> (disables today and before, yesterday does have correct date)
>
> disabledRanges="{[{rangeEnd new Date.setTime(new Date().getTime() -
> (1*millisecondsPerDay)) }]}"
> (all days are enabled)
>
> Any help would be greatly appreciated.
>
> -David
>