calculating exact age
Kenneth Brody
kenbrody at bestweb.net
Thu Nov 25 07:21:42 PST 2004
Peter Klaassen - NCC vof wrote:
>
> > Age = int( (Today - Birthday)/"365.25" )
>
> Ken,
>
> This oneliner exactly does the trick, thanks a lot.
> I also found out that no matter what type of date edit you use (@td,
> @t4, mdy, dmy, mdyy, dmyy, ect.), all can be calculated with, no
> matter if they are different within one calculation.
As long as PFCMARK is set properly, you can use 2-digit-year dates into
the 21st century. However, you are still limited to a 100-year range,
so if you have a birthday in 1915, you can't also have a loan payoff
date in 2020.
[...]
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>
More information about the Filepro-list
mailing list