Unfortunately it's not that straightforward. You need to call the setTime()method of the Date object you want to modify and pass in the new time in milliseconds.
To add one hour (60 * 60 * 1000 ms) to dateObj dateObj.setTime(dateObj.getTime() + 3600000); To add a day (24 * 60 * 60 * 1000 ms) to dateObj dateObj.setTime(dateObj.getTime() + 86400000); Dirk. > -----Original Message----- > From: kengaree [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 08, 2005 8:56 PM > To: flexcoders@yahoogroups.com > 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 > > > > > > > >