[flexcoders] Re: Return a person's age

2007-10-01 Thread Doug Lowder
Here's how I would do it: var age:Number = todayDate.fullYear - birthDate.fullYear; if (todayDate.month < birthDate.month || (todayDate.month == birthDate.month && todayDate.date < birthDate.date)) age--; return age; --- In flexcoders@yahoogroups.com, JRBower <[EMAIL PROTECTED]> wrote: > > > I

[flexcoders] Re: Return a person's age

2007-10-02 Thread Doug Lowder
Wouldn't that produce a negative number, given that birthDate probably comes before todayDate? Discounting that, I think that would give you the person's age in milliseconds. --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Based on my reading of the docs, there

[flexcoders] Re: Return a person's age

2007-10-02 Thread Doug Lowder
ting time as well. > > > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Doug Lowder > Sent: Tuesday, October 02, 2007 3:37 PM > To: flexcoders@yahoogroups.com > Subject: [fle

[flexcoders] RE: Return a person's age

2007-10-03 Thread JRBower
Was mach Ich? Do I go with "Team Germany?" :) How would I implement that code? Danke, James Tracy Spratt wrote: > > Duh, that's right. I should have left this one alone. > Tracy > > -- View this message in context: http://www.nabble.com/Return-a-person%27s-age-tf4545118.html#a1302856

RE: [flexcoders] Re: Return a person's age

2007-10-02 Thread Tracy Spratt
expect it will work for subracting time as well. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug Lowder Sent: Tuesday, October 02, 2007 3:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return a person'