Calculates the applicant's age down to months and days in addition to years.
Syntax
'Declaration
Public Overloads Shared Function CalcAge( _
ByVal As Date, _
ByVal As Date, _
ByRef As Integer, _
ByRef As Integer _
) As Integer
'Usage
Dim birthDate As Date
Dim asOfDate As Date
Dim months As Integer
Dim days As Integer
Dim value As Integer
value = Applicant.CalcAge(birthDate, asOfDate, months, days)
public static int CalcAge(
DateTime ,
DateTime ,
out int ,
out int
)
public function CalcAge(
: DateTime;
: DateTime;
Out : Integer;
Out : Integer
): Integer; static;
public static function CalcAge(
: DateTime,
: DateTime,
: int,
: int
) : int;
public: static int CalcAge(
DateTime ,
DateTime ,
[PARAMFLAG::Out] int ,
[PARAMFLAG::Out] int
)
public:
static int CalcAge(
DateTime ,
DateTime ,
[Out] int ,
[Out] int
)
Parameters
- birthDate
- The birth date.
- asOfDate
- As of date.
- months
- Contains the number of months for the calculated age.
- days
- Contains the number of days for the calculated age.
See Also