Normal Topic Number of years between dates. (Read 800 times)
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Number of years between dates.
Sep 25th, 2007 at 12:22am
Print Post Print Post  
Will this work


Age = @Year(@Date) - Date Of Birth

Opps forget the @Year
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Number of years between dates.
Reply #1 - Sep 25th, 2007 at 12:29am
Print Post Print Post  
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: [Sloved] Number of years between dates.
Reply #2 - Sep 25th, 2007 at 12:31am
Print Post Print Post  
Thanks Hammer,

I am still learning, but i am happy to say that I did work it out and I saw the error.


how ever i will read what you posted me,


thanks for your wonderful program and the help that you lot are giving me

regards

drastixnz
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Number of years between dates.
Reply #3 - Sep 25th, 2007 at 12:36am
Print Post Print Post  
drastixnz wrote on Sep 25th, 2007 at 12:31am:
I am still learning, but i am happy to say that I did work it out and I saw the error.


If you are referring to your note about @Year, that won't do it for you. Use the code I pointed you at.

Also: Please leave the [thread tags] and the red pen notes to the moderators. Thank you.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Number of years between dates.
Reply #4 - Sep 25th, 2007 at 12:41am
Print Post Print Post  
Opps blush sorry



I have this code in place now, and it gives me the correct amount of years.

Age = @Year(@Date) - @Year(Date Of Birth)
  
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Number of years between dates.
Reply #5 - Sep 25th, 2007 at 12:44am
Print Post Print Post  
drastixnz wrote on Sep 25th, 2007 at 12:41am:
I have this code in place now, and it gives me the correct amount of years.

Age = @Year(@Date) - @Year(Date Of Birth)


It will not be correct if the person has not yet had their birthday this year.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: Number of years between dates.
Reply #6 - Sep 25th, 2007 at 1:16am
Print Post Print Post  
Thanks once again, I understand why now.
  
Back to top
IP Logged