ModelBaseCalculateAge(NullableDateTime) Method

Calculate the current age based on a DateTime value.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static int? CalculateAge(
	DateTime? date
)

Parameters

date  NullableDateTime
Date to use.

Return Value

NullableInt32
is returned if no date is provided.

See Also