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


public static int Age(
	DateTime dateOfBirth
)

Parameters

dateOfBirth
Type: DateTime
The date of birth.

Return Value

returns int