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
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
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
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
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'
5 matches
Mail list logo