UtilDateTimeGetAgeTime(DateTime) Method
Gets the current elapsed life time of a person from the specified birth date.
Namespace: DevCase.Core.DateAndTimeAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static TimeSpan GetAgeTime(
DateTime birthDate
)
Public Shared Function GetAgeTime (
birthDate As DateTime
) As TimeSpan
Dim birthDate As DateTime
Dim returnValue As TimeSpan
returnValue = UtilDateTime.GetAgeTime(birthDate)
public:
static TimeSpan GetAgeTime(
DateTime birthDate
)
static member GetAgeTime :
birthDate : DateTime -> TimeSpan
No code example is currently available or this language may not be supported.
- birthDate DateTime
-
The birth date.
TimeSpan
The elapsed life time.
This is a code example.
No code example is currently available or this language may not be supported.
Dim birthdDate As Date = Date.ParseExact("08/09/1986", "dd/MM/yyyy", CultureInfo.InvariantCulture)
Dim time As TimeSpan = GetAgeTime(birthdDate)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentOutOfRangeException
|
at
|