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:
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
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,
3 matches
Mail list logo