Selerix Developer Tools
CalcAge(DateTime,DateTime,Int32,Int32) Method






Selerix.BusinessObjects Assembly > Selerix.BusinessObjects Namespace > Applicant Class > CalcAge Method : CalcAge(DateTime,DateTime,Int32,Int32) Method
The birth date.
As of date.
Contains the number of months for the calculated age.
Contains the number of days for the calculated age.
Calculates the applicant's age down to months and days in addition to years.
Syntax
'Declaration
 
Public Overloads Shared Function CalcAge( _
   ByVal birthDate As Date, _
   ByVal asOfDate As Date, _
   ByRef months As Integer, _
   ByRef days 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 birthDate,
   DateTime asOfDate,
   out int months,
   out int days
)
public function CalcAge( 
    birthDate: DateTime;
    asOfDate: DateTime;
   Out  months: Integer;
   Out  days: Integer
): Integer; static; 
public static function CalcAge( 
   birthDate : DateTime,
   asOfDate : DateTime,
   months : int,
   days : int
) : int;
public: static int CalcAge( 
   DateTime birthDate,
   DateTime asOfDate,
   [PARAMFLAG::Out] int months,
   [PARAMFLAG::Out] int days
) 
public:
static int CalcAge( 
   DateTime birthDate,
   DateTime asOfDate,
   [Out] int months,
   [Out] int days
) 

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

Reference

Applicant Class
Applicant Members
Overload List