[flexcoders] Re: DateField disabledRanges

2008-05-21 Thread David C. Moody
Yes it did, but then FlexBuilder gave errors about it won't be able to notice changes to yesterday. So I tried {yesterday} that took away the error, but both times it disabled today and before. Not yesterday and before. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

[flexcoders] Re: DateField disabledRanges

2008-05-21 Thread David C. Moody
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

[flexcoders] Re: DateField - disabledRanges

2005-09-01 Thread Jason R. Weiss
You can just subtract 1 from their date, like this: var today : Date = new Date(); alert(today.toString(), Today, mx.controls.Alert.OK); var yesterday : Date = today; yesterday.setDate(today.getDate() - 1); alert(yesterday.toString(), Yesterday,