DateTimeExtensions
.
.
::
.
.
Age Method
Ages the specified date of birth. DateTime henrybirthdate = new DateTime(1998,10,12); int age = henrybirthdate.Age();
Namespace:
Core
Assembly:
Core
(in Core.dll)
Syntax
C#
public
static
int
Age
(
DateTime
dateOfBirth
)
Parameters
dateOfBirth
Type:
DateTime
The date of birth.
Return Value
returns int
See Also
DateTimeExtensions Class
Core Namespace