Also... The Date object in ActionScript is as specified in the Ecmascript-262 standard.
- Gordon -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 12:40 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DATE Function in Flex Hi Alex Date Object in Flex(ActionScript) is quite powerful and allows you do things more easily... var _date = new Date(2004, 11, 31); //11 means december, months are 0 based... _date.setDate(_date.getDate() + 1); //sets _date to 01/0/2005, again 0 means jan Or you can extend the Date class and add the desired functions... class DateEx extends Date { ... ... function addDays(count) { setDate(getDate() + count); } ... ... } var _date = new DateEx(2004, 11, 31); _date.addDays(1); -abdul -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 12:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DATE Function in Flex .NET has a nice set of date functions that will allow you to add or subtract days from a selected date. For Example: my date is 12/31/2004 myDate.AddDays(1) would set the myDate equal to 01/01/2005 >From reading the documentation, I don't see such capabilities in the Flex Date class. Is there any such functionality WITHOUT re-inventing the wheel and writing your own function from scratch? Thanks, Alex Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/