RE: getting the number of years between two dates

2002-11-07 Thread Ing. Mauricio Angulo Sillas
: [EMAIL PROTECTED] Asunto: RE: getting the number of years between two dates Actually figured out one of my own: FLOOR(PERIOD_DIFF(EXTRACT(YEAR_MONTH FROM NOW()),EXTRACT(YEAR_MONTH FROM UserDOB))/ 12) as Age It's amazing what you can think of as soon as you ask the question. -Ori

RE: getting the number of years between two dates

2002-11-07 Thread John Meyer
Sent: Thursday, November 07, 2002 1:58 PM To: John Meyer Cc: [EMAIL PROTECTED] Subject: Re: getting the number of years between two dates John Meyer wrote: >sql,query > >How do I do that? The contaxt is that I want to get somebody's age based >upon the current date. > > There

Re: getting the number of years between two dates

2002-11-07 Thread Michael T. Babcock
John Meyer wrote: sql,query How do I do that? The contaxt is that I want to get somebody's age based upon the current date. There are several examples in the mailing list archives; but try subtracting the UNIX_TIMESTAMP of each date (which is the time in seconds) and then divide by the nu

RE: getting the number of years between two dates

2002-11-07 Thread John Meyer
sql,query How do I do that? The contaxt is that I want to get somebody's age based upon the current date. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/

Re: Getting the number of years between two dates

2001-06-26 Thread Paul DuBois
At 3:05 PM -0300 6/26/01, Augusto Cesar Castoldi wrote: >It's possible get the number of years between two dates in a mysql >function? That kind of depends on what you mean by the number of years between two dates. For example, do you define the number of years between 2000-12-31 and 2001-01-01

RE: Getting the number of years between two dates

2001-06-26 Thread Michael Knoll
: Getting the number of years between two dates It's possible get the number of years between two dates in a mysql function? thanks, Augusto - Before posting, please check: http://www.mysql.com/manual.php (the manual)

Getting the number of years between two dates

2001-06-26 Thread Augusto Cesar Castoldi
It's possible get the number of years between two dates in a mysql function? thanks, Augusto - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list arc