Age ( birthday; today; Format )
Rate this function: Average rating: 3.5 (13 votes) Discuss this Custom Function
Kevin Kurpe, Proponent
www.YourProponent.com
This calculation determines a person's age based upon their birthday and a given date.
Sample Input:
Age (
GetAsDate ( "8/31/1948" ) ;
GetAsDate ( "1/19/2011" ) ; 4 ) |
|
Sample Output:
62 years
4 months
19 days |
|
Description:
The function will calculate a persons age. The result of this function can be displayed in four different formats:
1: Years
2: Years and Days
3: Years, Months and Days.
4: Years ¶ Months ¶ Days
////////////////////////////////////////////////////
// CREDIT
////////////////////////////////////////////////////
// ORIGINALLY AUTHORED BY
// Chris Moyer
// Bob Bowers
// MODIFIED BY
// Geoff Wells, DataIsland Software LLC
// http://www.dataisland.com
// REWORKED BY
// Kevin Kurpe
// Proponent, LLC
// Kevin@YourProponent.com
// (727) 871-3092
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:5 most recent comments | Show all 7 comments Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 2. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 3. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 4. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 5. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 6. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
| 7. |
CenterWindow in Window vert horiz (demension) |
| |
(Fri, Jan 06, 12:25pm) |
| 8. |
UTF8_to_TXT ( Text , Platform ) |
| |
(Wed, Dec 28, 10:44pm) |
 |
|
This function returns incorrect results:
A person born on Jan 31, 1982 is 27 years old on Jan 31, 2009;
A year earlier, on Jan 31, 2008 the same person was 25 years old - TWO years younger.
Not to mention that on Mar 1, 2011 this person will be "29 years and 1 months, and -2 days" old.
comment, VR
August 22, 2010 3:59pm