How old are you?

# Thread: How old are you?

1. Junior Member
Join Date
Dec 1969
Posts
3

## How old are you?

Exist a easy method to answer this simple question?<BR>if you try this:<BR><BR> int(datediff("d",#28-feb-1967#,#28-feb-2002#)/365.25)<BR><BR>you will get 35 that&#039;s ok, but this is wrong:<BR><BR>int(datediff("d",#28-feb-1967#,#28-feb-2004#)/365.25)<BR><BR>yes, I know, I can do a subrotine for this but, exist a short way for use this concept in a sql for a database, like access?<BR><BR>Thanks.<BR>Jose<BR>

2. Senior Member
Join Date
Dec 1969
Posts
607

## Just ask the user their age :) <eop>

.

3. Senior Member
Join Date
Dec 1969
Posts
5,104

## I'm 21... and you?

DateDiff("y", #20-may-1980#, #28-feb-2002#)<BR><BR>That should do it.<BR><BR>-Doug

4. Senior Member
Join Date
Dec 1969
Posts
497

## im 21 too

dougs got it...

5. Senior Member
Join Date
Dec 1969
Posts
379

## I'm 67... but I feel like I'm 27 <e

.

6. Senior Member
Join Date
Dec 1969
Posts
404

## 3 years ago I was

5 times as old as my son.<BR><BR>Now I am 4 times as old.

7. Senior Member
Join Date
Dec 1969
Posts
11,334

## What is 28?

For \$200 Alex...<BR><BR>Though there&#039;s a missing year here, so maybe you&#039;re coming in on an odd number ;)

8. Senior Member
Join Date
Dec 1969
Posts
404

## RE: What is 28?

28 / 4 = 7<BR>25 / 5 = 5<BR><BR>not quite :)

9. Senior Member
Join Date
Dec 1969
Posts
2,809

## Wait...

28 now? 25 3 years ago, the kid&#039;s 5. That would make the kid 8 now, which is 32...ohhh, unless the b-day is later. So the kid&#039;s still 7, making 28 work. That sound right? So not EXACTLY 3 years ago...otherwise the b-days match...

10. Senior Member
Join Date
Dec 1969
Posts
2,809

## 48!!!

It&#039;s 48 isn&#039;t it?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•