Er, to modify:

function nextMonth(df:DateField):Void
{
var currentDate:Date = df.selectedDate;
currentDate.setMonth(currentDate.getMonth() + 1);
df.selectedDate = currentDate;
}

Forgot to re-assign the date. Anyway, those methods could be called form a 
Utilities class, or you could add them via a Decorator.


----- Original Message ----- 
From: "JesterXL" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 08, 2005 2:59 PM
Subject: Re: [flexcoders] Increment Date



Hrm... maybe:

function nextDay(df:DateField):Void
{
var currentDate:Date = df.selectedDate;
currentDate.setDate(currentDate.getDate() + 1);
}

function nextMonth(df:DateField):Void
{
var currentDate:Date = df.selectedDate;
currentDate.setMonth(currentDate.getMonth() + 1);
}

???

----- Original Message ----- 
From: "kengaree" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 08, 2005 2:55 PM
Subject: [flexcoders] Increment Date




Is there a way to increment the date in either the date object or
the datefield control?

Example: Jan 31, 2005 + 1 = Feb 1, 2005

Thanks,
Ken






Yahoo! Groups Links









Yahoo! Groups Links








Reply via email to