Dom, 
That is also covered in the GetElapsedPeriod function with an extra "to"
date parameter. It otherwise defaults to the current date.

param = 'GetElapsedPeriod'
elapsedDates = iconv('12 October 1967','d'):@am:iconv('6 April
2006','d')
call DateUtility(param,elapsedDates)
currentAge = param ;* (years am months am days)

>-----Original Message-----
>This looks like an interesting utility, but if I'm reading it
correctly, it
>will only give me their age now, which isn't what I'm after?
>Dom.
>
>Stuart.Boydell wrote:
>>
>> http://www.pickwiki.com/cgi-bin/wiki.pl?DateUtility
>>
>> param = 'GetElapsedPeriod'
>> call DateUtility(param,birthdate)
>> currentAge = param ;* (years am months am days)
>>
>>>-----Original Message-----
>>>Hi,
>>>Could anyone tell me how I can calculate someones age from their date
>> of
>>>birth at a specific point in time? ie, age at 6 April 2006 if their
>> date of
>>>birth is 12 October 1967.

 
**********************************************************************
This email message and any files transmitted with it are confidential and 
intended solely for the use of addressed recipient(s). If you have received 
this communication in error, please reply to this e-mail to notify the sender 
of its incorrect delivery and then delete it and your reply.  It is your 
responsibility to check this email and any attachments for viruses and defects 
before opening or sending them on. Spotless collects information about you to 
provide and market our services. For information about use, disclosure and 
access, see our privacy policy at http://www.spotless.com.au 
Please consider our environment before printing this email. 
********************************************************************** 
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to