Damon

  set var v1 INTEGER = ((INT(CTXT(FORMAT(.#DATE,'YYYYMMDD')))) -
(INT(CTXT(FORMAT(.VDOB,'YYYYMMDD')))))

 

  This will give you the age in yymmdd and if over 100 years it would be
yyymmdd

 

Buddy

 

 

  

 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Gray,
Damon
Sent: Friday, November 07, 2008 10:33 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Calculating a persons age.

 

In the absence of a DATEDIFF function, is there a function in RBase
6.5++ that will allow me to calculate an employee's age from their date
of birth and .#DATE, or do I need to code this up?

 

 

Damon J. Gray

Business System Services

Anvil Corporation

(360) 937-0770

 

Reply via email to